dsh-model-think-level 1.1.8 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/LICENSE +13 -0
  2. package/README.md +38 -0
  3. package/assets/NOTICE.md +15 -0
  4. package/assets/unified_bank.json +32910 -0
  5. package/lib/client/ComposerSlider.d.ts +9 -9
  6. package/lib/client/EffortEditor.d.ts +22 -12
  7. package/lib/client/FingerprintPane.d.ts +36 -0
  8. package/lib/client/KeyManager.d.ts +36 -10
  9. package/lib/client/ProtocolMenu.d.ts +51 -0
  10. package/lib/client/capacity.d.ts +30 -0
  11. package/lib/client/events.d.ts +26 -0
  12. package/lib/client/fingerprint-client.d.ts +81 -0
  13. package/lib/client/fingerprint-runner.d.ts +61 -0
  14. package/lib/client/index.d.ts +6 -0
  15. package/lib/client/injection/add-card.d.ts +4 -0
  16. package/lib/client/injection/create-card-pane.d.ts +15 -0
  17. package/lib/client/injection/create-key-seat.d.ts +53 -0
  18. package/lib/client/injection/create-keys-pane.d.ts +46 -0
  19. package/lib/client/injection/editor-tab-bar.d.ts +2 -1
  20. package/lib/client/injection/editor-tabs.d.ts +11 -1
  21. package/lib/client/injection/key-reveal.d.ts +24 -0
  22. package/lib/client/injection/models-page-editor.d.ts +165 -1
  23. package/lib/client/injection/provider-card-slot.d.ts +3 -1
  24. package/lib/client/injection/provider-endpoints.d.ts +70 -0
  25. package/lib/client/injection/staged-keys.d.ts +169 -0
  26. package/lib/client/key-manager-client.d.ts +89 -12
  27. package/lib/client/locales.d.ts +80 -6
  28. package/lib/client/ops.d.ts +4 -0
  29. package/lib/client/refresh-scheduler.d.ts +29 -0
  30. package/lib/client/styles.d.ts +1 -1
  31. package/lib/client/types.d.ts +44 -2
  32. package/lib/client.js +2275 -266
  33. package/lib/client.js.map +4 -4
  34. package/lib/constants.d.ts +11 -0
  35. package/lib/discovery-merge.d.ts +35 -0
  36. package/lib/fingerprint/bank.d.ts +24 -0
  37. package/lib/fingerprint/challenges.d.ts +14 -0
  38. package/lib/fingerprint/core.d.ts +85 -0
  39. package/lib/fingerprint/eligibility.d.ts +8 -0
  40. package/lib/fingerprint/random.d.ts +4 -0
  41. package/lib/fingerprint/run.d.ts +110 -0
  42. package/lib/fingerprint/store.d.ts +31 -0
  43. package/lib/fingerprint/verdict.d.ts +64 -0
  44. package/lib/headers-fetch.d.ts +53 -3
  45. package/lib/headers-pi-ai.d.ts +31 -1
  46. package/lib/index.d.ts +3 -19
  47. package/lib/index.js +2438 -153
  48. package/lib/index.js.map +4 -4
  49. package/lib/key-index.d.ts +58 -1
  50. package/lib/key-probe.d.ts +126 -0
  51. package/lib/key-refs.d.ts +106 -0
  52. package/lib/key-route-core.d.ts +415 -0
  53. package/lib/knowledge.d.ts +6 -5
  54. package/lib/listing.d.ts +118 -0
  55. package/lib/multi-key-listing.d.ts +101 -0
  56. package/package.json +13 -5
@@ -5,4 +5,4 @@
5
5
  * `bre-`. Uses CSS variables for theme awareness where the host provides them.
6
6
  */
7
7
  /** The stylesheet text, inserted once into <head> by the client apply(). */
8
- export declare const STYLES = "\n/* The injector's mount wrapper. It \u2014 not the editor inside it \u2014 is the item\n placed into the official row disclosure's repeat(auto-fit, minmax(160px,1fr))\n grid (context window and max tokens take two cells), so the span belongs\n here: on the editor itself it would target the wrapper's block box and be\n ignored, squeezing the block into one cell. */\n.bre-effort-slot {\n grid-column: 1 / -1;\n}\n/* The slot wrapper is a plain column: the master thinking switch sits in it,\n directly above the card it gates. */\n.bre-effort-editor {\n display: flex;\n flex-direction: column;\n gap: 8px;\n margin: 8px 0 4px;\n}\n/* The \u601D\u8003\u5F3A\u5EA6 card proper \u2014 rendered only while the master switch is on. */\n.bre-effort-card {\n display: flex;\n flex-direction: column;\n gap: 8px;\n padding: 10px 12px;\n border: 0.5px solid var(--dsw-alias-border-l2);\n border-radius: 8px;\n background: var(--dsw-alias-bg-layer-2);\n box-sizing: border-box;\n}\n.bre-effort-head {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n}\n.bre-effort-title {\n font-size: 12px;\n font-weight: 600;\n color: var(--dsw-alias-label-secondary);\n}\n.bre-link-button {\n background: none;\n border: none;\n padding: 2px 6px;\n font-size: 12px;\n color: var(--dsw-alias-link);\n cursor: pointer;\n border-radius: 4px;\n}\n.bre-link-button:hover { text-decoration: underline; }\n.bre-link-button:disabled { opacity: 0.5; cursor: default; text-decoration: none; }\n.bre-auto-effort {\n /* Seated in the OFFICIAL catalogue head, among the host's own controls, so it\n wears THEIR metrics instead of the plugin's blue underlined link look\n (user request: \"\u4E0D\u8981\u8D85\u94FE\u63A5\u6837\u5F0F\uFF0C\u8DDF\u53E6\u5916\u4E24\u4E2A\u4FDD\u6301\u4E00\u81F4\"). These values mirror\n the host's own linkButton rule; the seat cannot simply take that class,\n because it would then answer the probe that finds the anchor it sits after.\n No extra margin: the head's own 12px gap already spaces it exactly like the\n controls beside it. */\n box-sizing: border-box;\n display: inline-flex;\n align-items: center;\n height: 28px;\n padding: 0 10px;\n border: none;\n border-radius: var(--dsw-radius-sm, 8px);\n background: none;\n color: var(--dsw-alias-label-tertiary, #6b7280);\n font: inherit;\n font-size: 12px;\n line-height: 18px;\n cursor: pointer;\n flex: none;\n}\n.bre-auto-effort:hover {\n background: var(--dsw-alias-interactive-bg-hover, #2631480f);\n color: var(--dsw-alias-label-secondary, #374151);\n}\n.bre-effort-grid {\n /* Exactly two equal columns mirroring the official capacity pair the editor\n sits under; an odd row count leaves the last cell in the left column,\n so the left side carries the extra level. */\n display: grid;\n grid-template-columns: repeat(2, minmax(0, 1fr));\n gap: 4px 16px;\n}\n.bre-effort-row {\n display: grid;\n grid-template-columns: 20px 76px minmax(0, 1fr);\n align-items: center;\n gap: 6px;\n font-size: 12px;\n}\n.bre-effort-row input[type='checkbox'] {\n /* Bigger than the browser default (~13px): a tap/point target that does\n not require precision, in the theme accent when checked. */\n width: 18px;\n height: 18px;\n margin: 0;\n accent-color: var(--dsw-alias-brand-primary);\n cursor: pointer;\n}\n.bre-effort-level { color: var(--dsw-alias-label-tertiary); }\n.bre-effort-wire {\n box-sizing: border-box;\n min-width: 0;\n height: 24px;\n padding: 0 6px;\n border: 0.5px solid var(--dsw-alias-border-l4);\n border-radius: 4px;\n background: var(--dsw-alias-bg-layer-1);\n color: var(--dsw-alias-label-primary);\n font: inherit;\n font-size: 12px;\n}\n.bre-effort-wire:focus {\n outline: none;\n border-color: var(--dsw-alias-brand-primary);\n}\n.bre-effort-empty { min-height: 24px; }\n.bre-effort-actions {\n display: flex;\n gap: 8px;\n justify-content: flex-end;\n}\n.bre-secondary-button {\n height: 26px;\n padding: 0 12px;\n border-radius: 6px;\n font-size: 12px;\n cursor: pointer;\n border: 0.5px solid var(--dsw-alias-border-l3);\n}\n.bre-secondary-button:disabled { opacity: 0.5; cursor: default; }\n.bre-secondary-button { background: transparent; color: inherit; }\n.bre-effort-message { font-size: 12px; margin: 0; }\n.bre-effort-message.bre-error { color: #c62828; }\n.bre-effort-message.bre-info { color: var(--dsw-alias-link); }\n.bre-effort-note { font-size: 11px; margin: 0; color: var(--dsw-alias-label-tertiary); }\n/* ---- Input-modality section ---- */\n.bre-modality {\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n.bre-modality-row {\n display: flex;\n align-items: center;\n gap: 6px;\n font-size: 12px;\n}\n.bre-modality-row input[type='checkbox'] {\n width: 18px;\n height: 18px;\n margin: 0;\n accent-color: var(--dsw-alias-brand-primary);\n cursor: pointer;\n}\n.bre-modality-clear { margin-left: auto; }\n.bre-modality-note { font-size: 11px; margin: 0; color: var(--dsw-alias-label-tertiary); }\n/* The master thinking switch, which lives OUTSIDE the card it gates: with it\n off that card is not rendered at all, so nothing here has to be hidden. */\n.bre-thinking-switch { margin: 0; }\n.bre-select, .bre-text-input {\n box-sizing: border-box;\n width: 100%;\n max-width: 240px;\n height: 32px;\n padding: 0 10px;\n border: 0.5px solid var(--dsw-alias-border-l4);\n border-radius: 8px;\n background: var(--dsw-alias-bg-layer-1);\n color: var(--dsw-alias-label-primary);\n font: inherit;\n font-size: 14px;\n line-height: 22px;\n}\n.bre-text-input::placeholder { color: var(--dsw-alias-label-dimmed); }\n.bre-select:focus, .bre-text-input:focus {\n outline: none;\n border-color: var(--dsw-alias-brand-primary);\n}\n.bre-select:disabled, .bre-text-input:disabled { opacity: 0.6; cursor: default; }\n.bre-select {\n cursor: pointer;\n /* The OS arrow sits flush against the right edge; the official select swaps\n it for the shared 12px chevron inset on the same right pad. Data-URI SVGs\n cannot resolve CSS variables, so the stroke is the caption gray both\n themes share. */\n appearance: none;\n padding-right: 32px;\n background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%2381858C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\");\n background-repeat: no-repeat;\n background-position: right 12px center;\n background-size: 12px 12px;\n}\n.bre-error { color: var(--dsw-alias-state-error-primary); }\n/* ---- Zoned suggestion display ---- */\n.bre-suggestion {\n display: flex;\n flex-direction: column;\n gap: 3px;\n}\n.bre-reference {\n display: flex;\n flex-wrap: wrap;\n align-items: baseline;\n gap: 4px 14px;\n padding: 6px 8px;\n border: 1px dashed var(--dsw-alias-border-l3);\n border-radius: 6px;\n font-size: 11px;\n color: var(--dsw-alias-label-tertiary);\n}\n.bre-reference-title { font-weight: 600; }\n.bre-reference-values { display: inline-flex; gap: 14px; }\n/* ---- Composer model menu (mounted inside the OFFICIAL menu) ----\n The body and host sizing follow HanaAyane's dsh-reasoning-effort (MIT).\n The model and reasoning-level rows below use the current row/list UI. */\n.bre-slider-body {\n /* The replicated popover body. The official menu shell carries padding: 4px\n (ModelSelect.module.css), so pull the replica flush to the box. overflow\n stays VISIBLE: an open list is laid out inside the body, so nothing ever\n has to escape it, and the rows' own hover radius needs no clipping. */\n overflow: visible;\n margin: -4px;\n padding: 8px;\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n/* The official menu is content-sized; while the replicated popover body is\n live, its box takes the upstream .re-model-menu width. The class is added\n by the mount and removed when the slider is switched off. */\n.bre-model-menu-host {\n width: min(340px, calc(100vw - 32px));\n min-width: 0;\n}\n/* The official trigger keeps ownership of its model/effort children. The\n provider prefix is a pseudo-element so host React updates, focus handling and\n the click target remain untouched.\n\n Scoped to the composer, which owns the only button that carries this stamp.\n The settings sidebar's account button is ALSO an [aria-haspopup=\"menu\"]\n button, so an unscoped rule paints the prefix onto the account row the\n moment a stale stamp lands there \u2014 and a stamp that escaped the composer\n must render nothing rather than relabel a host control. The seat anchor is\n listed too, so a shell that renders the trigger outside the card body still\n gets the prefix. */\n[data-composer-card] button[data-bre-provider]::before,\n[data-slot=\"conversation.input.model\"] button[data-bre-provider]::before {\n content: attr(data-bre-provider) \" \u00B7 \";\n flex: none;\n color: var(--dsw-alias-label-secondary);\n font-weight: 400;\n white-space: nowrap;\n}\n\n/* ---- Model / reasoning-level rows ----\n Presentation follows dsh-tauri-model-config's settings rows\n (src/client/models/styles.ts: .zGbnIq_rowCard / .zGbnIq_rowHead /\n .zGbnIq_iconButton): hairline separators between rows and a list opening\n under the row it belongs to. Re-prefixed bre- and routed through the tokens\n this file already uses. */\n/* Layout only \u2014 it deliberately paints NO background, border, radius or\n overflow clip. The replica is mounted inside the OFFICIAL menu, and that\n shell already draws its own surface (MenuSurface: a [data-menu-material]\n panel whose .material child paints --dsw-menu-surface-fill, i.e.\n --dsw-specific-menu, under backdrop-filter: var(--dsw-menu-backdrop-filter),\n rounded by --dsw-radius-lg and outlined by --dsw-elevation-prominent).\n A second opaque card in here shows that official surface as a grey frame\n around it \u2014 two stacked surfaces where every other menu in the app has one. */\n.bre-card {\n display: flex;\n flex-direction: column;\n}\n.bre-row-control {\n appearance: none;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n min-height: 38px;\n padding: 0 10px;\n border: 0;\n /* Matches the official menu cells (.u91W7W_cell / .u91W7W_option use\n --dsw-radius-md, 8px here) and the .bre-option rows below, now that the\n surface behind the rows is the menu's own and hover is no longer clipped\n by a card. */\n border-radius: 8px;\n background: transparent;\n color: inherit;\n font: inherit;\n text-align: left;\n cursor: pointer;\n transition: background 120ms ease;\n}\n.bre-row-control:hover:not(:disabled) {\n background: var(--dsw-alias-interactive-bg-hover, rgba(120, 125, 140, .09));\n}\n.bre-row-control.is-open { background: var(--dsw-alias-fill-tertiary, rgba(120, 125, 140, .09)); }\n.bre-row-control:disabled { cursor: default; opacity: .6; }\n.bre-row-control:focus-visible {\n outline: none;\n box-shadow: inset 0 0 0 2px var(--dsw-alias-border-l3);\n}\n.bre-row-label {\n flex: none;\n font-size: 13px;\n line-height: 20px;\n color: var(--dsw-alias-label-secondary);\n}\n.bre-row-value {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n text-align: right;\n font-size: 13px;\n line-height: 20px;\n font-weight: 500;\n color: var(--dsw-alias-label-primary);\n}\n.bre-row-value.is-muted { font-weight: 400; color: var(--dsw-alias-label-tertiary); }\n.bre-divider { height: 1px; margin: 0 10px; background: var(--dsw-alias-border-l4); }\n.bre-panel {\n display: flex;\n flex-direction: column;\n gap: 2px;\n max-height: 220px;\n overflow-y: auto;\n padding: 2px 6px 8px;\n}\n/* Provider column + model column of the model list, side by side. The height is\n FIXED: switching provider must not resize the card, or every click would need\n another same-frame re-place and any missed one shows as a jump. */\n.bre-panel-models {\n flex-direction: row;\n align-items: stretch;\n gap: 0;\n height: 240px;\n max-height: none;\n overflow: hidden;\n padding: 4px 6px 8px;\n}\n.bre-providers {\n flex: none;\n display: flex;\n flex-direction: column;\n gap: 2px;\n width: 112px;\n overflow-y: auto;\n padding-right: 2px;\n}\n.bre-provider-models {\n flex: 1 1 auto;\n min-width: 0;\n display: flex;\n flex-direction: column;\n gap: 2px;\n overflow-y: auto;\n margin-left: 6px;\n padding-left: 6px;\n border-left: 1px solid var(--dsw-alias-border-l4);\n}\n.bre-option,\n.bre-provider {\n appearance: none;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n min-height: 30px;\n padding: 0 8px;\n border: 0;\n border-radius: 8px;\n background: transparent;\n color: inherit;\n font: inherit;\n font-size: 13px;\n line-height: 20px;\n text-align: left;\n cursor: pointer;\n transition: background 120ms ease, color 120ms ease;\n}\n/* The provider cell carries its chevron hard against the right edge. */\n.bre-provider { gap: 4px; padding: 0 4px 0 8px; }\n.bre-option:hover:not(:disabled),\n.bre-provider:hover:not(:disabled) {\n background: var(--dsw-alias-interactive-bg-hover, rgba(120, 125, 140, .09));\n}\n.bre-option:disabled,\n.bre-provider:disabled { cursor: default; opacity: .6; }\n.bre-option:focus-visible,\n.bre-provider:focus-visible {\n outline: none;\n box-shadow: inset 0 0 0 2px var(--dsw-alias-border-l3);\n}\n.bre-option-name {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.bre-option.is-active {\n color: var(--dsw-static-deepseek-500, #4d70ff);\n font-weight: 500;\n background: var(--dsw-alias-fill-tertiary, rgba(120, 125, 140, .09));\n}\n/* The open provider is the highlighted one; the provider of the CURRENT model\n keeps the accent so the column says where the selection lives. */\n.bre-provider.is-open { background: var(--dsw-alias-fill-tertiary, rgba(120, 125, 140, .09)); }\n.bre-provider.is-current .bre-option-name {\n color: var(--dsw-static-deepseek-500, #4d70ff);\n font-weight: 500;\n}\n.bre-provider .bre-row-chevron { width: 14px; height: 14px; font-size: 14px; }\n/* Capability badges on a model row (image input / thinking). Muted so the name\n stays the brightest thing in the row; the badge's own title carries the copy. */\n.bre-option-tags {\n flex: none;\n display: inline-flex;\n align-items: center;\n gap: 6px;\n color: var(--dsw-alias-label-tertiary);\n}\n.bre-option.is-active .bre-option-tags { color: var(--dsw-static-deepseek-500, #4d70ff); }\n.bre-tag { display: inline-flex; align-items: center; }\n.bre-tag-icon { display: block; width: 13px; height: 13px; }\n.bre-option-check { flex: none; width: 14px; height: 14px; }\n.bre-empty { padding: 6px 8px; font-size: 12px; color: var(--dsw-alias-label-tertiary); }\n/* ---- Truncated-label tooltip (custom, replaces the native title) ----\n A self-drawn bubble instead of the OS tooltip, which the page cannot style\n and which reads harsh next to the menu. Fixed-positioned on <body> so the\n menu's own overflow/clip cannot cut it, aligned under the truncated span,\n capped to the viewport with wrap for very long names. */\n.bre-tip {\n position: fixed;\n z-index: 2147483647;\n max-width: min(360px, calc(100vw - 24px));\n box-sizing: border-box;\n padding: 5px 9px;\n border-radius: 8px;\n background: var(--dsw-alias-bg-module-platform, #232630);\n color: var(--dsw-alias-label-primary, #f2f3f5);\n font-size: 12px;\n line-height: 18px;\n overflow-wrap: anywhere;\n white-space: normal;\n pointer-events: none;\n box-shadow: 0 4px 16px rgba(0, 0, 0, .22);\n animation: bre-tip-in 120ms ease-out;\n}\nbody:not([data-ds-dark-theme]) .bre-tip {\n background: #ffffff;\n color: var(--dsw-alias-label-primary, #1f2329);\n box-shadow: 0 4px 16px rgba(0, 0, 0, .14), 0 0 0 .5px var(--dsw-alias-border-l4, rgba(0, 0, 0, .1));\n}\n@keyframes bre-tip-in {\n from { opacity: 0; transform: translateY(-2px); }\n to { opacity: 1; transform: translateY(0); }\n}\n@media (prefers-reduced-motion: reduce) {\n .bre-tip { animation: none; }\n}\n.bre-effort {\n display: flex;\n align-items: center;\n width: 100%;\n min-width: 0;\n height: 32px;\n color: var(--dsw-alias-label-secondary);\n user-select: none;\n box-sizing: border-box;\n}\n/* upstream re-model-error: the directory/store error line under the row */\n.bre-model-error {\n margin: 8px;\n padding: 8px 10px;\n border-radius: 8px;\n color: var(--dsw-alias-state-error-primary, #c83e4d);\n background: var(--dsw-alias-state-error-tertiary, rgba(220,55,70,.08));\n font-size: 11px;\n}\n.bre-row-chevron {\n flex: none;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 16px;\n height: 16px;\n font-size: 18px;\n line-height: 1;\n color: var(--dsw-alias-label-tertiary);\n transform: rotate(0deg);\n transition: transform 120ms ease;\n}\n.bre-row-chevron.is-open { transform: rotate(90deg); }\n/* ---- Models-page slider toggle (boxed setting item) ----\n Item form ported VERBATIM from upstream .re-setting-row; the surrounding\n box is the requested container (border only, transparent background). */\n.bre-slider-setting {\n margin-top: 12px;\n padding: 0 14px;\n border: 1px solid var(--dsw-alias-stroke-secondary, rgba(121,126,145,.2));\n border-radius: 12px;\n background: transparent;\n}\n.bre-slider-setting-row {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 24px;\n padding: 16px 0;\n /* Upstream .re-setting-row carries a list bottom border because the general\n settings list held TWO rows (the slider + the big-fish toggle). This box\n holds exactly one, so no divider: the box itself is the container. */\n}\n.bre-slider-setting-copy { min-width: 0; }\n.bre-slider-setting-title {\n color: var(--dsw-alias-label-primary, #15171b);\n font-size: 14px;\n font-weight: 400;\n line-height: 22px;\n}\n.bre-slider-setting-description {\n margin-top: 3px;\n color: var(--dsw-alias-label-tertiary, #9296a0);\n font-size: 12px;\n line-height: 18px;\n}\n.bre-slider-setting-control { display: inline-flex; align-items: center; gap: 10px; flex: none; }\n.bre-slider-setting-state { color: var(--dsw-alias-label-secondary, #686c75); font-size: 13px; }\n.bre-slider-setting-switch {\n position: relative;\n width: 38px;\n height: 22px;\n padding: 0;\n border: 0;\n border-radius: 999px;\n background: var(--dsw-alias-fill-quaternary, #c7cbd3);\n cursor: pointer;\n transition: background 150ms ease;\n}\n.bre-slider-setting-switch:hover { filter: brightness(.97); }\n.bre-slider-setting-switch:disabled { cursor: not-allowed; opacity: .45; }\n.bre-slider-setting-switch:focus-visible {\n outline: 2px solid var(--dsw-static-blue-400, #5d83ff);\n outline-offset: 2px;\n}\n.bre-slider-setting-switch.is-on { background: var(--dsw-alias-state-business-primary, #4f73ff); }\n.bre-slider-setting-switch-knob {\n position: absolute;\n top: 2px;\n left: 2px;\n width: 18px;\n height: 18px;\n border-radius: 50%;\n background: #fff;\n box-shadow: 0 1px 4px rgba(0,0,0,.2);\n transition: transform 170ms cubic-bezier(.22,1,.36,1);\n}\n.bre-slider-setting-switch.is-on .bre-slider-setting-switch-knob { transform: translateX(16px); }\n\n/* Model selection search box */\n.bre-model-search-box {\n display: flex;\n flex-direction: column;\n padding: 6px 8px 4px;\n position: sticky;\n top: 0;\n z-index: 2;\n background: var(--dsw-specific-menu, var(--dsw-alias-bg-layer-1, #1e1f22));\n}\n.bre-model-search-box:has(.bre-search-empty),\n.bre-model-search-box.has-empty {\n flex: 1 1 auto;\n}\n.bre-search-input-wrapper {\n display: flex;\n align-items: center;\n position: relative;\n width: 100%;\n height: 32px;\n padding: 0 8px;\n box-sizing: border-box;\n border-radius: 8px;\n background: var(--dsw-alias-bg-layer-2, rgba(255, 255, 255, 0.06));\n border: 0.5px solid var(--dsw-alias-border-l4, rgba(255, 255, 255, 0.12));\n color: var(--dsw-alias-label-primary);\n transition: border-color 150ms ease, box-shadow 150ms ease;\n}\n.bre-search-input-wrapper:focus-within {\n border-color: var(--dsw-static-deepseek-500, #4d70ff);\n box-shadow: 0 0 0 2px rgba(77, 112, 255, 0.2);\n}\n.bre-search-icon {\n display: flex;\n align-items: center;\n justify-content: center;\n flex: 0 0 16px;\n width: 16px;\n height: 16px;\n margin-right: 6px;\n color: var(--dsw-alias-label-tertiary, #81858c);\n pointer-events: none;\n}\n.bre-search-icon svg {\n width: 14px;\n height: 14px;\n}\n.bre-search-input {\n flex: 1 1 auto;\n min-width: 0;\n height: 100%;\n padding: 0;\n border: none;\n outline: none;\n background: transparent;\n color: inherit;\n font: inherit;\n font-size: 13px;\n line-height: 20px;\n}\n.bre-search-input::placeholder {\n color: var(--dsw-alias-label-tertiary, #81858c);\n opacity: 0.85;\n}\n.bre-search-clear {\n display: flex;\n align-items: center;\n justify-content: center;\n flex: 0 0 18px;\n width: 18px;\n height: 18px;\n margin-left: 4px;\n padding: 0;\n border: none;\n border-radius: 4px;\n background: transparent;\n color: var(--dsw-alias-label-tertiary, #81858c);\n cursor: pointer;\n transition: background 120ms ease, color 120ms ease;\n}\n.bre-search-clear:hover {\n background: var(--dsw-alias-interactive-bg-hover, rgba(255, 255, 255, 0.1));\n color: var(--dsw-alias-label-primary);\n}\n.bre-search-clear svg {\n width: 12px;\n height: 12px;\n}\n.bre-search-empty {\n display: flex;\n align-items: center;\n justify-content: center;\n flex: 1 1 auto;\n min-height: 180px;\n padding: 24px 16px;\n text-align: center;\n color: var(--dsw-alias-label-tertiary, #81858c);\n font-size: 13px;\n line-height: 20px;\n user-select: none;\n}\n\n/* ---- Request-header section (issue #12). Mounted through the official\n settings.models.provider-card seat, so it sits in the card's own layout\n rather than a disclosure grid.\n\n Every value below was MEASURED off the official Models page's own controls\n in DSH 0.1.7-rc.2 rather than guessed, and each is expressed through the same\n --dsw-alias-* token the host paints with, so a theme switch (light/dark)\n repaints this section along with the page:\n\n provider card radius 20px, 1px var(--dsw-alias-settings-card-stroke)\n editor action save = filled var(--dsw-alias-button-primary-fill), h36,\n radius 12px, 0 14px, 14px; cancel = 1px border, same box\n row action h28, radius 8px, 0 10px, 12px, 1px border\n text link h21, radius 4px, 2px 6px, 12px, link-blue label\n text input radius 12px, 0 10px, 1px var(--dsw-alias-border-l3) ---- */\n/* The provider-card slot's wrapper.\n The official slot mounts us inside a display:contents container, so our own\n root IS a flex item of the card row \u2014 and the row lays its children out with\n a 12px gap. A wrapper that stays in the flow while empty therefore adds one\n phantom gap to EVERY card in the list, which is exactly the height regression\n this rule exists to prevent. Collapsed, the wrapper leaves the flow entirely:\n the card renders as it did before the plugin.\n (Deliberately NOT display:contents here \u2014 that keeps it a gap-participating\n item, which is the bug this rule fixes.)\n Open, it becomes an ordinary block so the section below can lay itself out.\n data-edit lives HERE \u2014 the occurrence component publishes the card's state\n onto its own root, so keying the rule on .bre-headers[data-edit] instead\n would silently never match. */\n.bre-headers-host {\n display: none;\n}\n.bre-headers-host[data-edit=\"1\"] {\n display: block;\n}\n.bre-headers {\n display: flex;\n flex-direction: column;\n gap: 8px;\n /* The card lays its own children out with a 12px gap and no dividers; this\n section is an addition to that column, so it separates itself the same way\n the host separates card sections \u2014 a hairline on the card's own stroke. */\n border-top: 1px solid var(--dsw-alias-border-l2, #0000001a);\n padding-top: 12px;\n\n /* Present ONLY while the provider card is being edited.\n The provider list is a list of providers: a request-header row parked in\n every card, collapsed or not, is noise on a surface the user did not ask\n to configure. The card reveals its editor when the user presses its own\n Edit action, and that is the moment this section belongs on screen \u2014 the\n same gesture that opens the model list opens this.\n\n The visibility is decided by the component (which watches the card and\n sets data-edit on the wrapper), not by a selector: the official editor is\n NOT a sibling of this element \u2014 its container sits in the card row's own\n children, after the row head and this section's own wrapper \u2014 so no\n relative selector can reach it. The wrapper's data-edit is the one fact\n CSS can act on.\n\n Degradation is safe by construction: with no observer (no card ancestor to\n watch) data-edit stays \"0\", the section is never revealed, and the\n official page stays clean rather than leaking a row into every card. */\n display: none;\n}\n.bre-headers-host[data-edit=\"1\"] .bre-headers {\n display: flex;\n}\n/* The collapsed heading is the section's identity while the card is being\n edited: title, configured count, and the \u203A that opens the details. */\n.bre-headers-disclosure {\n display: flex;\n align-items: center;\n gap: 6px;\n width: 100%;\n padding: 0;\n border: none;\n background: transparent;\n color: inherit;\n font: inherit;\n text-align: left;\n cursor: pointer;\n}\n.bre-headers-disclosure:hover .bre-effort-title {\n color: var(--dsw-alias-label-secondary, #61666b);\n}\n.bre-headers-chevron {\n margin-left: auto;\n padding-right: 2px;\n color: var(--dsw-alias-label-tertiary, #81858c);\n font-size: 14px;\n line-height: 1;\n transition: transform 150ms ease;\n}\n.bre-headers[data-open=\"1\"] .bre-headers-chevron { transform: rotate(90deg); }\n/* How many entries are configured \u2014 the one fact worth showing while closed. */\n.bre-headers-count {\n min-width: 16px;\n padding: 0 5px;\n border-radius: 8px;\n background: var(--dsw-alias-interactive-bg-hover, #2631480f);\n color: var(--dsw-alias-label-secondary, #61666b);\n font-size: 11px;\n line-height: 16px;\n text-align: center;\n}\n.bre-headers-head {\n display: flex;\n align-items: center;\n min-height: 32px;\n padding: 0 8px;\n border-radius: var(--dsw-radius-sm, 8px);\n background: var(--dsw-alias-interactive-bg-hover, #2631480f);\n}\n.bre-headers-head .bre-effort-title {\n color: var(--dsw-alias-label-primary, #0f1115);\n font-weight: 600;\n}\n.bre-headers-edit, .bre-headers-rows {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.bre-headers-columns,\n.bre-headers-row {\n display: grid;\n grid-template-columns: minmax(120px, 0.9fr) minmax(180px, 1.5fr) 28px;\n align-items: center;\n gap: 8px;\n}\n.bre-headers-columns {\n padding: 0 10px;\n color: var(--dsw-alias-label-tertiary, #81858c);\n font-size: 11px;\n line-height: 16px;\n}\n.bre-headers-row {\n min-height: 40px;\n padding: 4px 6px;\n border: 1px solid var(--dsw-alias-border-l2, #0000001a);\n border-radius: var(--dsw-radius-sm, 8px);\n background: var(--dsw-alias-bg-layer-1, #fff);\n}\n.bre-headers-add {\n align-self: flex-start;\n min-height: 30px;\n padding: 0 10px;\n border: 1px solid var(--dsw-alias-border-l2, #0000001a);\n border-radius: var(--dsw-radius-sm, 8px);\n color: var(--dsw-alias-label-primary, #0f1115);\n}\n.bre-headers-add:hover:not(:disabled) {\n background: var(--dsw-alias-interactive-bg-hover, #2631480f);\n}\n.bre-headers-remove {\n width: 28px;\n padding: 0;\n justify-self: center;\n}\n.bre-headers-rows .bre-headers-name {\n color: var(--dsw-alias-label-secondary, #61666b);\n font-size: 12px;\n word-break: break-all;\n}\n.bre-headers-masked {\n color: var(--dsw-alias-label-tertiary, #81858c);\n font-family: ui-monospace, SFMono-Regular, Menlo, monospace;\n letter-spacing: 0;\n}\n\n/* The section's commit/dismiss pair, matching the official editor's own\n actions: a filled commit and a bordered dismiss, 36px tall at 14px.\n .bre-headers-actions is the same pair pulled OUT of the header editor: in\n the \u9AD8\u7EA7\u914D\u7F6E pane the row closes the whole pane, so it sits after every\n section and must not inherit the rows' size rules from a parent that is no */\n.bre-headers-edit .bre-primary-button,\n.bre-headers-actions .bre-primary-button {\n height: 36px;\n padding: 0 14px;\n border: none;\n border-radius: var(--dsw-radius-md, 12px);\n background: var(--dsw-alias-button-primary-fill, #0f1115);\n color: var(--dsw-alias-label-primary-foreground, #fff);\n font-size: 14px;\n font-weight: 400;\n line-height: 1;\n cursor: pointer;\n}\n.bre-headers-edit .bre-primary-button:hover:not(:disabled),\n.bre-headers-actions .bre-primary-button:hover:not(:disabled) {\n background: var(--dsw-alias-button-primary-hover, #43454a);\n}\n.bre-headers-edit .bre-primary-button:disabled,\n.bre-headers-actions .bre-primary-button:disabled { opacity: 0.5; cursor: default; }\n.bre-headers-edit .bre-secondary-button,\n.bre-headers-actions .bre-secondary-button {\n height: 36px;\n padding: 0 14px;\n border: 1px solid var(--dsw-alias-border-l3, #0000001f);\n border-radius: var(--dsw-radius-md, 12px);\n background: transparent;\n color: var(--dsw-alias-label-primary, #0f1115);\n font-size: 14px;\n}\n.bre-headers-edit .bre-secondary-button:hover:not(:disabled),\n.bre-headers-actions .bre-secondary-button:hover:not(:disabled) {\n background: var(--dsw-alias-interactive-bg-hover, #2631480f);\n}\n/* The row that closes the pane. It gets room, not a rule: the last section\n already carries the pane's divider on its title row, so a line here would\n draw a second one with nothing between them to divide. */\n.bre-headers-actions {\n padding-top: 12px;\n}\n\n/* The row actions and the section's Edit affordance: the official 28px\n bordered small button, and the 21px blue text link the model rows use. */\n.bre-headers-row .bre-link-button {\n height: 28px;\n padding: 2px 8px;\n border: none;\n border-radius: var(--dsw-radius-sm, 8px);\n background: transparent;\n color: var(--dsw-alias-label-secondary, #61666b);\n font-size: 12px;\n line-height: 1;\n}\n.bre-headers-row .bre-link-button:hover:not(:disabled) {\n background: var(--dsw-alias-interactive-bg-hover, #2631480f);\n}\n.bre-headers .bre-effort-head > .bre-link-button {\n height: 28px;\n padding: 0 10px;\n border: 1px solid var(--dsw-alias-border-l2, #0000001a);\n border-radius: var(--dsw-radius-sm, 8px);\n color: var(--dsw-alias-label-primary, #0f1115);\n font-size: 12px;\n text-decoration: none;\n}\n.bre-headers .bre-effort-head > .bre-link-button:hover:not(:disabled) {\n background: var(--dsw-alias-interactive-bg-hover, #2631480f);\n text-decoration: none;\n}\n.bre-headers-edit .bre-link-button {\n color: var(--dsw-alias-label-secondary, #61666b);\n font-size: 12px;\n}\n\n/* The section's own fields, on the official input box. */\n.bre-headers-edit input.bre-text-input {\n height: 32px;\n padding: 0 10px;\n border: 1px solid var(--dsw-alias-border-l3, #0000001f);\n border-radius: var(--dsw-radius-md, 12px);\n background: var(--dsw-alias-bg-layer-1, #fff);\n color: var(--dsw-alias-label-primary, #0f1115);\n font-size: 13px;\n box-sizing: border-box;\n}\n.bre-headers-edit input.bre-text-input:focus {\n border-color: var(--dsw-alias-label-tertiary, #81858c);\n outline: none;\n}\n.bre-headers-edit input.bre-text-input:disabled { opacity: 0.6; cursor: default; }\n\n/* Status copy and the coexistence warnings, on the host's own state colours. */\n.bre-headers .bre-effort-note.bre-warn { color: var(--dsw-alias-state-warn-label, #dd8629); }\n.bre-headers .bre-effort-message.bre-success { color: var(--dsw-alias-state-success-primary, #22c55e); }\n.bre-headers .bre-effort-message.bre-error { color: var(--dsw-alias-state-error-primary, #ec1313); }\n\n@media (max-width: 520px) {\n .bre-headers-columns { display: none; }\n .bre-headers-row {\n grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) 28px;\n gap: 6px;\n padding: 4px;\n }\n .bre-headers-edit input.bre-text-input {\n padding: 0 8px;\n font-size: 12px;\n }\n}\n\n/* ---- Provider row reordering (Models page) ---- */\n\n/* The whole row header is the drag handle: an 18px grip is a poor thing to\n have to hit, so a drag may start anywhere on the header that is not one of\n the card's own controls (those keep their own cursor, declared below). */\nli[data-bre-row-head='1'] { cursor: grab; }\nli[data-bre-row-head='1']:active { cursor: grabbing; }\nli[data-bre-row-head='1'] button,\nli[data-bre-row-head='1'] a,\nli[data-bre-row-head='1'] input { cursor: pointer; }\n\n/* The grip is mounted as the first child of that header, so it reads as part\n of the row rather than as a control bolted beside it. It is also the button\n that reorders by keyboard. */\n.bre-drag-grip {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex: 0 0 auto;\n width: 14px;\n height: 20px;\n margin-right: 2px;\n border-radius: 4px;\n color: var(--dsw-alias-label-tertiary, #81858c);\n cursor: grab;\n touch-action: none;\n}\n\n.bre-drag-grip:hover {\n color: var(--dsw-alias-label-secondary, #61666b);\n background: var(--dsw-alias-interactive-bg-hover, #2631480f);\n}\n\n.bre-drag-grip:focus-visible {\n outline: 2px solid var(--dsw-alias-brand-primary);\n outline-offset: 1px;\n}\n\n.bre-drag-grip:active { cursor: grabbing; }\n\n/* What the pointer carries: the browser's own drag image would be a screenshot\n of a whole card, so we hand it this chip with the provider name instead. */\n.bre-drag-ghost {\n position: fixed;\n display: inline-flex;\n align-items: center;\n gap: 6px;\n max-width: 260px;\n padding: 5px 10px 5px 7px;\n border: 1px solid var(--dsw-alias-border-secondary, #e6e8eb);\n border-radius: 8px;\n background: var(--dsw-alias-bg-elevated, #ffffff);\n box-shadow: 0 6px 18px #0000002e;\n color: var(--dsw-alias-label-primary, #17181a);\n font-size: 13px;\n line-height: 18px;\n pointer-events: none;\n transform: translate(-50%, -50%);\n z-index: 60;\n}\n\n.bre-drag-ghost-name {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.bre-drag-ghost svg { color: var(--dsw-alias-label-tertiary, #81858c); }\n\n/* The row the drag is carrying: still in place, visibly the one in hand. */\nli.bre-row-dragging { opacity: .5; }\n\n/* The row the pointer would drop it on \u2014 a secondary cue; the insertion line\n below is the one that says which side. */\nli.bre-row-drop-target { border-color: var(--dsw-alias-brand-primary); }\n\n/* The insertion line. A fixed overlay on the body, never a child of the list\n React owns, so writing it cannot trigger anything in the official section.\n The layer stack matters more than it looks: the provider list lives inside the\n settings dialog, whose overlay is fixed and opaque with z-index 1000, so a\n line in the shell's own range would be drawn behind the dialog and never\n seen. It clears the dialog, and stays under the header's controls. */\n.bre-drop-line {\n position: fixed;\n display: none;\n height: 2px;\n border-radius: 2px;\n background: var(--dsw-alias-brand-primary, #4d6bfe);\n box-shadow: 0 0 0 1px #ffffffb3, 0 1px 4px var(--dsw-alias-brand-primary, #4d6bfe);\n pointer-events: none;\n z-index: 1200;\n}\n\n/* The row slide (a FLIP pass driven from the script) is motion; drop it for a\n reader who asked for less. */\n@media (prefers-reduced-motion: reduce) {\n li[data-bre-row-provider] { transition: none !important; }\n}\n\n@media (max-width: 520px) {\n .bre-drag-grip { width: 18px; height: 24px; }\n .bre-drag-ghost { max-width: 180px; font-size: 12px; }\n}\n\n/* ---- Model rows inside one provider's editor (Models page) ---- */\n\n/* The official model row is a four-column grid (id, display name, two icon\n buttons). Our grip is a fifth child, so the grid needs a leading track to\n hold it \u2014 declared by our own class, because the official rule is a single\n class selector and ours has to win on specificity, not on load order.\n Keep the host grid's class distinct from the composer's row controls so\n shared naming cannot lend menu-row styling to the host's grid. */\n.bre-model-grid[class*=\"modelRow\"] {\n grid-template-columns: auto minmax(0, 1.4fr) minmax(0, 1fr) auto auto;\n}\n\n/* A model row is a grid of inputs, so only the grip drags: the row keeps its\n text cursor and its own click behaviour. The grip takes the height of the\n row's controls, so the pointer has a real target inside a 6px-gap grid. */\n.bre-model-grid > .bre-drag-grip {\n width: 18px;\n height: 24px;\n margin-right: 0;\n}\n\n/* The engine paints the carried row and the row under the pointer with the same\n classes it uses on a provider card; the official model entry carries the\n border, so the drop cue has to land there rather than on the list item. */\ndiv.bre-row-dragging { opacity: .5; }\n[class*=\"modelEntry\"].bre-row-drop-target { border-color: var(--dsw-alias-brand-primary); }\n\n/* The row slide (a FLIP pass driven from the script) is motion; drop it for a\n reader who asked for less. */\n@media (prefers-reduced-motion: reduce) {\n [data-bre-row-model] { transition: none !important; }\n}\n\n/* The blank a shrinking model list leaves behind, appended to the panel's own\n scroll host (see holdListSlack in models-page-editor): it holds the host's\n scroll RANGE open so deleting a row cannot clamp the view down. Height is\n written inline from the script \u2014 it is the range being held, not a style \u2014\n and the element must never take layout from above or a pointer from the user. */\n.bre-list-slack {\n flex: 0 0 auto;\n pointer-events: none;\n}\n\n/* ---- Provider enable switch (Models page) ---- */\n\n/* Leads the row's own action group (which is pushed right by margin-left:auto),\n in front of the card's buttons, so the destructive one stays last. The knob is\n a pseudo element: no extra node for the official section's tree to trip over. */\n.bre-provider-switch {\n position: relative;\n flex: 0 0 auto;\n width: 30px;\n height: 18px;\n padding: 0;\n border: none;\n border-radius: 9px;\n background: var(--dsw-alias-bg-tertiary, #d7dae0);\n cursor: pointer;\n transition: background 140ms ease;\n}\n\n.bre-provider-switch::after {\n content: '';\n position: absolute;\n top: 2px;\n left: 2px;\n width: 14px;\n height: 14px;\n border-radius: 50%;\n background: var(--dsw-alias-bg-elevated, #ffffff);\n box-shadow: 0 1px 2px #00000026;\n transition: transform 140ms ease;\n}\n\n.bre-provider-switch:not([aria-checked='true']):hover { background: var(--dsw-alias-bg-quaternary, #c9ccd2); }\n\n.bre-provider-switch[aria-checked='true'] { background: var(--dsw-alias-brand-primary, #4d6bfe); }\n\n.bre-provider-switch[aria-checked='true']:hover { background: var(--dsw-alias-brand-primary-hover, #3f5ce8); }\n\n.bre-provider-switch[aria-checked='true']::after { transform: translateX(12px); }\n\n.bre-provider-switch:focus-visible {\n outline: 2px solid var(--dsw-alias-brand-primary, #4d6bfe);\n outline-offset: 2px;\n}\n\n/* A provider that is switched off stays on the page \u2014 this is the only place it\n can be switched back on \u2014 but it is visibly out of play. The switch itself is\n left at full strength: it is the way back. */\nli.bre-row-disabled [class*=\"rowIdentity\"],\nli.bre-row-disabled [class*=\"rowName\"] { opacity: .5; }\n\n@media (prefers-reduced-motion: reduce) {\n .bre-provider-switch,\n .bre-provider-switch::after { transition: none; }\n}\n\n/* ---- The reserved delete seat (Models page) ---- */\n\n/* A provider the host will not let the user remove renders no delete button, so\n that row's action group \u2014 pushed right by margin-left:auto \u2014 starts further\n right than its neighbours' and the column of buttons lines up raggedly. This\n seat holds the place: it borrows the metrics the official button takes inside\n an action group (.rowActions button is 28px tall / 12px / 0 10px) and the\n dimmed treatment the host gives its own disabled buttons (opacity .4 with a\n default cursor). It is always disabled \u2014 it is the alignment, not an action. */\n.bre-provider-delete {\n box-sizing: border-box;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n height: 28px;\n padding: 0 10px;\n border: none;\n border-radius: var(--dsw-radius-sm, 6px);\n background: 0 0;\n color: var(--dsw-alias-state-error-primary, #e5484d);\n font: inherit;\n font-size: 12px;\n line-height: 18px;\n opacity: .4;\n cursor: default;\n}\n\n/* ---- The folded group of switched-off providers (Models page) ---- */\n\n/* A switched-off provider keeps its row \u2014 that is where it is switched back on \u2014\n but it does not have to stay in the list the user reads. The row keeps its DOM\n slot (the drag pass reads its slots back out of there) and is ordered behind\n the group's control instead, so unfolding shows the group UNDER that control\n rather than scattered through the providers that are on.\n\n !important, because the drag passes write an inline order onto the rows they\n arrange: a folded row is not one of the rows the user is arranging, so the\n tail belongs to this stylesheet, not to the last drag that ran. */\n.bre-row-folded { order: 1001 !important; }\n\n/* The seat: the list item that carries the control, in front of the folded rows\n and behind every provider that is switched on. It is a list item of the host's\n own flex column \u2014 the only place from which a control can head rows inside the\n list \u2014 and it holds no card of its own, only the quiet end of the host's text\n scale. */\n.bre-provider-disabled-seat {\n box-sizing: border-box;\n order: 1000 !important;\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n.bre-provider-disabled-group {\n box-sizing: border-box;\n display: block;\n width: 100%;\n margin: 4px 0 0;\n padding: 4px 2px;\n border: none;\n background: 0 0;\n color: var(--dsw-alias-label-tertiary, #81858c);\n font: inherit;\n font-size: 12px;\n line-height: 18px;\n text-align: left;\n cursor: pointer;\n}\n\n.bre-provider-disabled-group:hover { color: var(--dsw-alias-label-secondary, #61666b); }\n\n.bre-provider-disabled-group:focus-visible {\n outline: 2px solid var(--dsw-alias-brand-primary, #4d6bfe);\n outline-offset: 2px;\n}\n\n/* The folded row itself. !important because the official card class decides its\n own display, and this stylesheet's order against the host's is not ours to\n rely on. */\n.bre-row-hidden { display: none !important; }\n\n/* A row action held by the settle guard (settle-guard.ts): the host has disabled\n the button for the post-apply reload, but the save already answered the click\n and the list is not what changed. The attribute stays on the element only\n while that reload runs \u2014 it is the painted opacity that is restored here, not\n the disabled state, so the button stays inert exactly as long as the host\n means it to. !important, because the official :disabled rule is what sets\n the .4. */\n[data-bre-settle] { opacity: 1 !important; }\n\n/* -----------------------------------------------------------------------\n The provider editor's three tabs.\n\n The official editor lays a provider out as one long column \u2014 identity\n fields, then the model list, then this plugin's request-header section\n one slot up the card. The tab pass (injection/editor-tabs.ts) tags each\n region and stamps the card with the active tab; EVERY visibility decision\n lives here, so the official React tree never moves and a pass failure\n degrades to the untouched one-column editor.\n ----------------------------------------------------------------------- */\n\n/* The segmented control. The plugin's tab-bar component renders it inside the\n request-header mount, which already holds the card's 12px gap slot \u2014 so the\n bar reaches the panes in the card's own rhythm WITHOUT this plugin ever\n inserting a node into the official child list. It stays hidden until the pass\n marks the card: a card the pass could not take over (the DeepSeek account\n editor) keeps that mount visible for its request-header section, and must not\n grow a bar that switches nothing. */\n.bre-editor-tabs {\n display: none;\n gap: 2px;\n padding: 2px;\n border-radius: 10px;\n background: var(--dsw-alias-fill-tertiary, rgba(120, 125, 140, .09));\n}\n\n/* Only a taken-over card shows the bar. */\n.bre-tabbed .bre-editor-tabs { display: flex; }\n\n/* ...and while the takeover is on, the mount holding that bar MUST be visible.\n This is the one place the takeover does not delegate its reveal to the\n official-edit state: the bar lives in here, and gating it on the _editor\n class probe would make the tabs depend on a probe an official redesign can\n break \u2014 with data-edit stuck at 0 the bar would be inside a display:none\n parent and no rule of ours could reach it. The taken-over class is written by\n the pass itself, in the same frame, so it is the trustworthy half of the\n pair. The section's own visibility stays a pane decision (below). */\n.bre-tabbed .bre-headers-host { display: block; }\n\n/* The create-provider card's CUSTOM form has no slot to render a bar into: the\n official page dispatches the provider-card slot inside the catalogue half\n only, so the create-card pass (injection/add-card.ts) mounts a bar of its own\n at the top of the form. Same contract as the mount above \u2014 hidden until the\n pass marks the card, the card's own gap rhythm once it does \u2014 so an\n untaken-over card is exactly the official one. */\n.bre-create-host {\n display: none;\n}\n.bre-tabbed .bre-create-host {\n display: block;\n}\n\n/* With the custom API form the only way left to add a provider, the official\n \"How to add\" switch has nothing to switch. The pass hides it ONLY once that\n form is really up: a card that has no custom form to offer, or a takeover\n that stepped back, keeps the switch \u2014 and with it the official explanation\n of why the other half is unavailable. */\n.bre-add-mode-picker {\n display: none;\n}\n\n.bre-editor-tab {\n flex: 1 1 0;\n min-width: 0;\n height: 28px;\n padding: 0 10px;\n border: none;\n border-radius: 8px;\n background: transparent;\n color: var(--dsw-alias-label-secondary, #61666b);\n font: inherit;\n font-size: 12px;\n font-weight: 500;\n line-height: 1;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n cursor: pointer;\n transition: background 140ms ease, color 140ms ease, box-shadow 140ms ease;\n}\n\n.bre-editor-tab:hover { color: var(--dsw-alias-label-primary, #0f1115); }\n\n/* The selected segment lifts out of the track: the page's own surface colour\n plus the card's own hairline, the same elevation the host uses for raised\n controls. Hover on a selected tab stays put \u2014 it is already where you are. */\n.bre-editor-tab[aria-selected='true'],\n.bre-editor-tab[aria-selected='true']:hover {\n background: var(--dsw-alias-bg-layer-1, #fff);\n color: var(--dsw-alias-label-primary, #0f1115);\n box-shadow: 0 1px 2px #0000001a, 0 0 0 1px var(--dsw-alias-border-l2, #0000001a);\n}\n\n.bre-editor-tab:focus-visible {\n outline: 2px solid var(--dsw-alias-brand-primary, #4d6bfe);\n outline-offset: 1px;\n}\n\n/* An advanced section with no headers mount (pre-first-render, feature off)\n offers an empty pane \u2014 the button steps aside until the mount exists. */\n.bre-editor-tab[hidden] { display: none; }\n\n/* Pane visibility, keyed on the card's active tab. Only the HIDING has to win\n a specificity fight (against the official sheet and the headers host's own\n reveal rule); the active pane keeps whatever display the official layout\n gave it, so showing must not declare a display at all. */\n.bre-tabbed:not([data-bre-tab='provider']) [data-bre-region='provider'],\n.bre-tabbed:not([data-bre-tab='models']) [data-bre-region='models'],\n.bre-tabbed:not([data-bre-tab='advanced']) [data-bre-region='advanced'] {\n display: none !important;\n}\n\n/* The advanced tab: the official body \u2014 fields, model list \u2014 steps aside for the\n request-header section, which is a complete form with its own save/cancel and\n becomes the pane under the very same bar. What does NOT step aside is the\n card's own commit row wherever the pass has marked one (data-bre-footer): on\n the create card that row IS the \u521B\u5EFA\u63D0\u4F9B\u5546 this pane's draft is written with,\n and a user who has just typed the headers is standing on this tab. An ordinary\n card keeps the old behaviour \u2014 its body steps aside wholesale, advanced pane\n and save included, because that pane carries a save of its own. */\n.bre-tabbed[data-bre-tab='advanced'] [data-bre-editor-body]:not([data-bre-footer]) {\n display: none !important;\n}\n\n/* A card whose commit row is kept: the body and every wrapper on the path to that\n row stay, but inside them only the path shows. The row is marked 'row' and not\n 'path' on purpose: a wrapper's unmarked children are exactly the fields and\n layout the tab is stepping away from, while the row's children are the buttons\n being kept. Panes the tabs own stay hidden by the region rule above. */\n.bre-tabbed[data-bre-tab='advanced'] [data-bre-footer='path'] > *:not([data-bre-footer]) {\n display: none !important;\n}\n\n/* The advanced pane shows the section for the same reason the mount is shown:\n a pane that is already the active one has no business depending on the\n official-edit probe. The rule above still wins for every other tab, and the\n base bre-headers rule keeps a collapsed card's section hidden \u2014 a card only\n carries the taken-over class while its editor is open. */\n.bre-tabbed[data-bre-tab='advanced'] .bre-headers { display: flex; }\n\n/* The pane is a card, and the section draws it. On the advanced tab the section\n is not an appendage to the fields above it any more \u2014 it is the whole surface\n \u2014 so it takes the inset fill the official module cards use (the add and setup\n cards): the one fill in this system that stays visible on the content card's\n own white in the light theme and reads as raised in the dark one, where every\n theme layer token collapses onto the same value. The hairline goes with it: it\n divided this section from those fields, and here the bar above ends the pane.\n The 12px top margin sets the card off the tab bar above it \u2014 the same gap the\n provider and models panes put between the bar and their own cards \u2014 and the\n 12px padding is the card's inner inset, not the separator. */\n.bre-tabbed[data-bre-tab='advanced'] .bre-headers {\n margin-top: 12px;\n padding: 12px;\n border-top: none;\n border-radius: var(--dsw-radius-lg, 16px);\n background: var(--dsw-alias-bg-module-platform, #f5f6f7);\n}\n\n/* The pane's heading is not a fold head. The grey pill, its hover state and\n the \u203A that opens the card section have no job in a pane that is always open\n and named by the tab above it, so the title drops back to plain text. It\n keeps the title row's weight the section uses everywhere else \u2014 the head\n strip and the hint both step aside for it, which is what makes the title\n the line the hint reads under rather than an equal of it. */\n.bre-tabbed[data-bre-tab='advanced'] .bre-headers-head {\n min-height: 0;\n padding: 0;\n background: none;\n}\n.bre-tabbed[data-bre-tab='advanced'] .bre-headers-head .bre-effort-title {\n font-size: 13px;\n line-height: 20px;\n}\n\n/* The live editor folds its identity fields and model list into one\n \"Customized\" disclosure. Under the tabs the grouping is the panes' job: the\n group stays expanded (the pass forces it open) and its summary row \u2014 now a\n toggle with nothing left to toggle \u2014 steps aside. */\n.bre-tabbed [data-bre-editor-body] details > summary {\n display: none !important;\n}\n\n/* A region that is NOT a pane. The editor's own header repeats the card row's\n provider name and route tag, and that row is already on screen directly above\n it, so the header is hidden on every tab. No pane rule above can select this\n id, which is what keeps it hidden whichever tab is active. */\n.bre-tabbed [data-bre-region='none'] {\n display: none !important;\n}\n\n/* The Models pane shows the custom model list and the catalogue, and two\n hairlines used to divide it: the \"Customized\" group's separator from the key\n field (which this pane hides) and the catalogue's own, drawn directly above\n its \"Model catalogue\" heading. Neither has anything to divide here \u2014 the tab\n bar already ends the pane above, and the divider between the two lists above\n the catalogue is the group's boundary, not a rule. Both go, with every top\n padding that held content off them (the group's 10px, its body's 12px, the\n catalogue's 12px), so the pane runs from the tab bar into the catalogue with\n only the official editor's own 14px gap between blocks. */\n.bre-tabbed[data-bre-tab='models'] [data-bre-editor-body] details[class*='customized'] {\n border-top: none;\n padding-top: 0;\n}\n\n.bre-tabbed[data-bre-tab='models'] [data-bre-editor-body] details[class*='customized'] > [class*='customizedBody'] {\n padding-top: 0;\n}\n\n/* The catalogue is a section (its heading, title and meta are the divs inside\n it), so this probe hits the ruled box and nothing else. */\n.bre-tabbed[data-bre-tab='models'] [data-bre-editor-body] section[class*='modelCatalog'] {\n border-top: none;\n padding-top: 0;\n}\n\n/* The catalogue heading names a box this pane has already named for the user:\n the Models tab IS the catalogue, so \"\u6A21\u578B\u76EE\u5F55\" says it twice, and\n \"\u5DF2\u81EA\u5B9A\u4E49\u6A21\u578B\u76EE\u5F55\" (the meta line beside it) says nothing at all \u2014 the rows\n below ARE the customized catalogue. Both strings are the host's own, so they\n go by class stem, and the heading takes its title and meta with it. The\n head's own controls (\u6062\u590D\u9ED8\u8BA4\u6A21\u578B / \u83B7\u53D6\u53EF\u7528\u6A21\u578B) are siblings of the heading,\n not children, so they stay \u2014 the auto-adapt seat is anchored to them. */\n.bre-tabbed[data-bre-tab='models'] [data-bre-editor-body] [class*='modelCatalogHeading'] {\n display: none;\n}\n\n/* With the heading gone the head holds only controls, and they read as TWO\n ENDS: \u6062\u590D\u9ED8\u8BA4\u6A21\u578B stays at the left edge while \u83B7\u53D6\u53EF\u7528\u6A21\u578B keeps the\n auto-adapt seat beside it at the far right \u2014 the seat belongs to that link's\n group, it is never a column of its own. The official space-between cannot\n express that once a third child exists: it spreads the three evenly, which\n strands the fetch link in the middle of the card. So the free space is handed\n to the fetch link's own leading auto margin instead \u2014 an auto margin absorbs\n the space BEFORE justify-content is consulted, whatever the official rule\n says. align-items centres the taller host links against the seat.\n\n The pin must NOT wait for the seat to exist: a card with no models shows the\n fetch link alone, and space-between puts a lone child at the START \u2014 so the\n link sat at the left edge until the first fetch seated the control beside it\n and shoved it right, the jump the user reported. Hence two selectors: the\n link that the seat follows, and the fetch link while it is still the LAST\n control of the head (the seat is a button too, so a last-of-type selector\n alone would eventually pin the seat instead). Either way the link holds the\n right edge from the first paint to the last. */\n.bre-tabbed[data-bre-tab='models'] [data-bre-editor-body] [class*='modelListHead'] {\n align-items: center;\n}\n.bre-tabbed[data-bre-tab='models'] [data-bre-editor-body] [class*='modelListHead'] > button:has(+ .bre-auto-effort),\n.bre-tabbed[data-bre-tab='models'] [data-bre-editor-body] [class*='modelListHead'] > button:not(.bre-auto-effort):last-of-type {\n margin-left: auto;\n}\n\n/* The click's answer, as a bubble at the top of the window that takes itself\n away again \u2014 and the official save line's answer too\n (injection/saved-notice.ts), which is raised the same way with the same\n done phase, so one shape covers both. The control is left alone on\n purpose: its label is what the user aimed at, and a button that rewrites\n itself is a button that moved. The\n bubble is a fixed overlay on the body \u2014 not a child of the head, which is the\n host's flex row and would take a fourth item \u2014 and it clears the settings\n dialog's opaque overlay for the same reason the drop line does. It follows\n the host's own toast in placement and tone, but not in z-index: the settings\n dialog's overlay outranks the toast layer, and this bubble is raised from\n inside that dialog. Pointer-events none keeps it out of the way, the phase\n colours the headline so the outcome reads before the words do, and the\n hold/fade pair is timed by --bre-note-hold, which the script sets from the\n same constant it uses for the dismissal. The fade is counted INSIDE that\n hold, so the bubble is gone when the clock says it is, rather than fading\n after it. */\n.bre-auto-effort-note {\n position: fixed;\n top: 40px;\n left: 50%;\n display: flex;\n flex-direction: column;\n gap: 2px;\n width: max-content;\n max-width: min(640px, calc(100vw - 48px));\n padding: 10px 14px;\n border-radius: 10px;\n background: var(--dsw-alias-toast-bg, #2b2f36);\n color: var(--dsw-alias-toast-label, #f9fafb);\n box-shadow: var(--dsw-shadow-lv3, 0 6px 24px #00000029);\n font-size: 13px;\n line-height: 20px;\n pointer-events: none;\n transform: translateX(-50%);\n animation: bre-note-in 160ms ease-out, bre-note-out 400ms ease calc(var(--bre-note-hold, 3000ms) - 400ms) forwards;\n z-index: 1200;\n}\n/* A pass in flight has no lifetime of its own: it is replaced by its verdict,\n which restarts both animations because the phase changes the rule. */\n.bre-auto-effort-note[data-bre-auto-effort-phase='working'] {\n animation: bre-note-in 160ms ease-out;\n}\n@keyframes bre-note-in {\n from { opacity: 0; transform: translate(-50%, -6px); }\n to { opacity: 1; transform: translate(-50%, 0); }\n}\n@keyframes bre-note-out {\n to { opacity: 0; visibility: hidden; }\n}\n@media (prefers-reduced-motion: reduce) {\n .bre-auto-effort-note {\n animation: bre-note-out 400ms ease calc(var(--bre-note-hold, 3000ms) - 400ms) forwards;\n }\n .bre-auto-effort-note[data-bre-auto-effort-phase='working'] { animation: none; }\n}\n.bre-auto-effort-note-text { font-weight: 500; }\n.bre-auto-effort-note-detail { opacity: .72; }\n/* The attribute is the visibility switch, so it must beat the flex column above. */\n.bre-auto-effort-note-detail[hidden] { display: none; }\n.bre-auto-effort-note[data-bre-auto-effort-phase='working'] .bre-auto-effort-note-text {\n color: var(--dsw-alias-state-business-primary, #6ea8fe);\n}\n.bre-auto-effort-note[data-bre-auto-effort-phase='done'] .bre-auto-effort-note-text {\n color: var(--dsw-alias-state-success-primary, #22c55e);\n}\n.bre-auto-effort-note[data-bre-auto-effort-phase='failed'] .bre-auto-effort-note-text {\n color: var(--dsw-alias-state-error-secondary, #ff8a80);\n}\n\n/* The API-key eye. The official key field is a plain flex column whose input is\n its last in-flow child, so the button hangs on the field's own box and is\n measured against the input's 32px row \u2014 the official markup offers no\n wrapper, and introducing one would mean moving DOM the host owns. The input\n keeps the room the button needs. */\n.bre-key-field { position: relative; }\n\n.bre-key-field > input { padding-right: 34px; }\n\n/* A field the plugin's key list manages hands its input over: the list below\n says the same thing once per key and keeps the pick, the alias and the value\n in one place, so an official box that writes the provider's single key would\n be a second, conflicting way to do it. The input stays in the DOM \u2014 the\n host's form still owns it and the reveal pass still finds it \u2014 so unmanaging\n the field brings the official box back. The marker is what the reveal pass\n stamps on that input; the direct-child form covers the pass that has not run\n yet, and the eye is the button the same pass hangs on the field. */\n.bre-key-managed [data-bre-key-input],\n.bre-key-managed > input,\n.bre-key-managed .bre-key-eye { display: none; }\n\n/* A field that failed validation grows a message line under the input; the eye\n rides above it so it stays on the input it belongs to (18px line + 6px gap). */\n.bre-key-field:has(> p) .bre-key-eye { bottom: 24px; }\n\n.bre-key-eye {\n position: absolute;\n right: 4px;\n bottom: 0;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 28px;\n height: 32px;\n padding: 0;\n border: 0;\n border-radius: 8px;\n background: transparent;\n color: var(--dsw-alias-label-secondary, #6b7280);\n cursor: pointer;\n -webkit-appearance: none;\n appearance: none;\n transition: background 140ms ease, color 140ms ease;\n}\n\n.bre-key-eye:hover {\n color: var(--dsw-alias-label-primary, #0f1115);\n background: var(--dsw-alias-interactive-bg-hover);\n}\n\n.bre-key-eye:focus-visible {\n outline: none;\n box-shadow: inset 0 0 0 2px var(--dsw-alias-border-l3);\n}\n\n/* Resolving a stored key is a same-origin round trip, so the button can be\n busy: it stays in place and dims rather than changing size or disappearing. */\n.bre-key-eye[aria-busy='true'] {\n opacity: 0.55;\n cursor: progress;\n}\n\n.bre-key-eye[hidden] { display: none; }\n\n/* One glyph at a time. The state lives on the button's own attribute, so a\n click swaps the icon without the host re-rendering anything. */\n.bre-key-eye svg[data-bre-icon] { display: none; }\n\n.bre-key-eye[aria-pressed='false'] svg[data-bre-icon='eye'],\n.bre-key-eye[aria-pressed='true'] svg[data-bre-icon='eye-off'] { display: block; }\n\n/* The key list. The plugin mounts it into its own host, a sibling placed right\n after the official key field, so the list sits under the input without\n changing the field's own box: the reveal eye is measured against that box\n (bottom: 0), and a list inside the field would drag the eye down onto the\n list's last row. The margin only covers the case where the card spaces its\n fields with margins instead of a gap. */\n.bre-keys-host {\n display: block;\n min-width: 0;\n margin-top: 4px;\n}\n\n.bre-keys { display: flex; flex-direction: column; gap: 8px; }\n\n/* While the key list is still reading, the panel renders NOTHING (the component\n returns an empty .bre-keys). An empty ruled box \u2014 or a placeholder line that\n then swaps to the list \u2014 would paint one frame of a panel that then visibly\n changes: the \"the key section flashes when you press Edit\" report. :empty\n takes the panel out of the layout until the first answer lands, so the list\n is the first thing the key area ever paints, and nothing under it moves. */\n.bre-keys:empty { display: none; }\n\n/* One ruled container holding the keys and the add entry, the way a settings\n list reads: a single hairline box, and hairlines between rows only. */\n.bre-keys-list {\n display: flex;\n flex-direction: column;\n margin: 0;\n padding: 0;\n border: 0.5px solid var(--dsw-alias-border-l2, #d5d7dd);\n border-radius: 8px;\n list-style: none;\n overflow: hidden;\n}\n\n.bre-keys-list > li + li { border-top: 0.5px solid var(--dsw-alias-border-l2, #d5d7dd); }\n\n.bre-keys-row {\n display: flex;\n align-items: center;\n gap: 8px;\n min-width: 0;\n padding: 9px 10px;\n}\n\n/* The enable choice closes the row. The radio stays the real input \u2014 so the\n keys of one provider are one group, choosing one clears the rest, and the\n pick is keyboard-reachable \u2014 and the circle is its face; the word beside it\n names the action instead of a state to hunt for. */\n.bre-keys-enable {\n display: inline-flex;\n flex: 0 0 auto;\n align-items: center;\n gap: 6px;\n cursor: pointer;\n}\n\n.bre-keys-enable-text {\n font-size: 11px;\n line-height: 1.5;\n color: var(--dsw-alias-label-secondary, #6b7280);\n}\n\n.bre-keys-enable:has(.bre-keys-enabled:checked) .bre-keys-enable-text {\n color: var(--dsw-alias-label-primary, #0f1115);\n}\n\n.bre-keys-enabled {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n border: 0;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n}\n\n.bre-keys-mark {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 16px;\n height: 16px;\n box-sizing: border-box;\n border: 1px solid var(--dsw-alias-border-l3, #9aa0aa);\n border-radius: 50%;\n color: var(--dsw-alias-bg-layer-1, #ffffff);\n transition: background 120ms ease, border-color 120ms ease;\n}\n\n.bre-keys-mark > svg { width: 12px; height: 12px; }\n\n.bre-keys-enabled:checked + .bre-keys-mark {\n border-color: var(--dsw-alias-label-primary, #0f1115);\n background: var(--dsw-alias-label-primary, #0f1115);\n}\n\n.bre-keys-enabled:focus-visible + .bre-keys-mark {\n outline: none;\n box-shadow: 0 0 0 2px var(--dsw-alias-brand-primary, #3b82f6);\n}\n\n/* With an alias the alias is the row's name and the masked key follows it as a\n quiet code pill; without one the masked key is the name and takes the row's\n measure, so a key is always readable as itself. */\n.bre-keys-alias {\n flex: 0 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: 12px;\n font-weight: 500;\n color: var(--dsw-alias-label-primary, #0f1115);\n}\n\n.bre-keys-mask {\n flex: 0 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n padding: 1px 6px;\n border-radius: 4px;\n background: var(--dsw-alias-interactive-bg-hover, rgba(127, 127, 127, 0.08));\n color: var(--dsw-alias-label-secondary, #6b7280);\n font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;\n font-size: 11px;\n}\n\n.bre-keys-mask-plain {\n flex: 1 1 auto;\n padding: 0;\n background: transparent;\n color: var(--dsw-alias-label-primary, #0f1115);\n font-family: inherit;\n font-size: 12px;\n}\n\n/* The row's three actions, revealed on hover or keyboard focus rather than\n removed, so the row keeps its width and nothing shifts under the pointer.\n Revealing is opacity alone; a pointer that cannot hover simply always sees\n them, because a hidden action there would be an unreachable one. */\n.bre-keys-actions {\n display: inline-flex;\n flex: 0 0 auto;\n align-items: center;\n gap: 10px;\n margin-left: auto;\n opacity: 0;\n pointer-events: none;\n transition: opacity 120ms ease;\n}\n\n.bre-keys-row:hover .bre-keys-actions,\n.bre-keys-row:focus-within .bre-keys-actions {\n opacity: 1;\n pointer-events: auto;\n}\n\n@media (hover: none) {\n .bre-keys-actions { opacity: 1; pointer-events: auto; }\n}\n\n.bre-keys-danger { color: var(--dsw-alias-state-error-primary, #c62828); }\n\n/* The one inline form. It opens under the row it edits, or \u2014 for a new key \u2014 as\n the list's own last item, which is what keeps adding a key in place instead\n of in a dialog that has to be found and dismissed. */\n.bre-keys-form-row { padding: 10px; }\n\n.bre-keys-form { display: flex; flex-direction: column; gap: 8px; }\n\n.bre-keys-form-fields {\n display: grid;\n grid-template-columns: repeat(2, minmax(0, 1fr));\n gap: 8px;\n}\n\n/* One field means the whole row: the value form holds only the secret, and it\n must not sit in half a row beside an empty half. */\n.bre-keys-form-fields > :only-child { grid-column: 1 / -1; }\n\n/* The shared input caps itself at 240px for the panels it was written for; here\n the field is the measure. */\n.bre-keys-form-fields .bre-text-input { max-width: none; }\n\n.bre-keys-form-actions {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n gap: 8px;\n}\n\n/* The shared primary button is styled inside the headers editor, which is not\n where this form lives, so the key list carries its own compact copy. */\n.bre-keys-form-actions .bre-primary-button {\n height: 28px;\n padding: 0 12px;\n border: 0;\n border-radius: var(--dsw-radius-md, 8px);\n background: var(--dsw-alias-button-primary-fill, #0f1115);\n color: var(--dsw-alias-label-primary-foreground, #ffffff);\n font: inherit;\n font-size: 12px;\n cursor: pointer;\n -webkit-appearance: none;\n appearance: none;\n}\n\n.bre-keys-form-actions .bre-primary-button:hover {\n background: var(--dsw-alias-button-primary-hover, #43454a);\n}\n\n.bre-keys-form-actions .bre-primary-button:disabled { opacity: 0.5; cursor: default; }\n\n.bre-keys-form-actions .bre-primary-button:focus-visible {\n outline: none;\n box-shadow: 0 0 0 2px var(--dsw-alias-brand-primary, #3b82f6);\n}\n\n/* The add entry is the list's own last row \u2014 full width, the same shape as the\n keys it adds to \u2014 so the way in and the thing it makes read as one list. */\n.bre-keys-add-row { padding: 0; }\n\n.bre-keys-add {\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n padding: 9px 10px;\n box-sizing: border-box;\n border: 0;\n background: transparent;\n color: var(--dsw-alias-label-secondary, #6b7280);\n font: inherit;\n font-size: 12px;\n text-align: left;\n cursor: pointer;\n -webkit-appearance: none;\n appearance: none;\n transition: background 120ms ease, color 120ms ease;\n}\n\n.bre-keys-add:hover {\n background: var(--dsw-alias-interactive-bg-hover, rgba(127, 127, 127, 0.08));\n color: var(--dsw-alias-label-primary, #0f1115);\n}\n\n.bre-keys-add:focus-visible {\n outline: none;\n box-shadow: inset 0 0 0 2px var(--dsw-alias-brand-primary, #3b82f6);\n}\n\n.bre-keys-add:disabled { opacity: 0.55; cursor: default; }\n\n.bre-keys-add-mark {\n display: inline-flex;\n flex: 0 0 auto;\n align-items: center;\n justify-content: center;\n width: 16px;\n height: 16px;\n}\n\n.bre-keys .bre-effort-message { font-size: 11px; }\n\n@media (prefers-reduced-motion: reduce) {\n .bre-editor-tab { transition: none; }\n .bre-key-eye { transition: none; }\n .bre-keys-mark, .bre-keys-actions, .bre-keys-add { transition: none; }\n}\n";
8
+ export declare const STYLES = "\n/* ---- Quiet Precision: the plugin's own token layer ----\n Every value below is a HOST design-platform token (--dsw-*) with the light\n theme's literal as the fallback, so the plugin inherits a theme switch for\n free instead of carrying a second palette. The few values the platform has no\n name for (a 10% accent tint, the slider's track grey) are declared here once\n and re-declared under the host's dark attribute \u2014 the plugin never hard-codes\n a colour in a component rule.\n\n The layer is declared on BOTH :root and body on purpose. A custom property\n resolves var() where it is DECLARED, not where it is used: declared on :root\n alone, --bre-ink would read the alias chain as the <html> element sees it, and\n the host republishes its dark aliases on body[data-ds-dark-theme] \u2014 a\n descendant \u2014 so every value here would stay frozen at the light fallback.\n Declaring it again on body makes each var() resolve against the element that\n actually carries the theme. */\n:root,\nbody {\n --bre-ink: var(--dsw-alias-label-primary, #0f1115);\n --bre-ink-2: var(--dsw-alias-label-secondary, #61666b);\n --bre-ink-3: var(--dsw-alias-label-tertiary, #81858c);\n /* label-dimmed is the host's disabled/skeleton tone \u2014 bluish-200 #e1e5ee on\n white, bluish-750 #43454a on #292929. Invisible as body copy, and it was what\n every placeholder and muted value inherited. Dimmed now stops at tertiary, and\n hint copy gets its own token a step darker so descriptions read without\n competing with real values. */\n --bre-ink-4: var(--dsw-alias-label-tertiary, #81858c);\n --bre-ink-hint: var(--dsw-alias-label-secondary, #61666b);\n --bre-surface: var(--dsw-alias-bg-base, #ffffff);\n --bre-sunken: var(--dsw-alias-bg-module-platform, #f5f6f7);\n --bre-sunken-2: var(--dsw-alias-fill-tertiary, #f1f3f5);\n --bre-track: #e9ecf2;\n --bre-hover: var(--dsw-alias-interactive-bg-hover, #2631480f);\n --bre-active: var(--dsw-alias-interactive-bg-active, #2631481a);\n --bre-line-1: var(--dsw-alias-border-l1, #0000000a);\n --bre-line-2: var(--dsw-alias-border-l2, #0000001a);\n --bre-line-3: var(--dsw-alias-border-l3, #0000001f);\n --bre-line-4: var(--dsw-alias-border-l4, #00000029);\n --bre-accent: var(--dsw-alias-link, #4176e6);\n --bre-accent-ink: #2f4c8f;\n --bre-accent-weak: #edf3fe;\n --bre-accent-line: #4176e640;\n --bre-accent-glow: #4176e61f;\n --bre-ok: var(--dsw-alias-state-success-primary, #22c55e);\n --bre-warn: var(--dsw-alias-state-warn-label, #dd8629);\n --bre-danger: var(--dsw-alias-state-error-primary, #ec1313);\n --bre-danger-weak: #fef2f2;\n --bre-r-xs: 4px;\n --bre-r-sm: 8px;\n --bre-r-md: 12px;\n --bre-r-pill: 999px;\n --bre-switch-track: #cfd3d6;\n --bre-switch-knob: #ffffff;\n --bre-ease: cubic-bezier(.4, 0, .2, 1);\n --bre-t: .16s;\n --bre-shadow-pop: 0 2px 5px #00000009, 0 12px 32px -8px #0f11151f;\n}\nbody[data-ds-dark-theme] {\n --bre-ink-4: var(--dsw-alias-label-tertiary, #adb2b8);\n --bre-surface: #292929;\n --bre-sunken: #353638;\n --bre-sunken-2: #3d3e40;\n --bre-track: #434446;\n --bre-accent-ink: #d3e2ff;\n --bre-accent-weak: #1e335c;\n --bre-accent-line: #7aaaff40;\n --bre-accent-glow: #7aaaff26;\n --bre-danger-weak: #3a1b18;\n --bre-switch-track: #4a4b4d;\n --bre-shadow-pop: 0 2px 5px #00000059, 0 12px 32px -8px #000000a6;\n}\n\n/* The injector's mount wrapper. It \u2014 not the editor inside it \u2014 is the item\n placed into the official row disclosure's repeat(auto-fit, minmax(160px,1fr))\n grid (context window and max tokens take two cells), so the span belongs\n here: on the editor itself it would target the wrapper's block box and be\n ignored, squeezing the block into one cell. The min-width floors the grid\n item's auto minimum at 0 for the same reason: a one-line hint inside must\n clip at the disclosure's edge, not price the host grid wider than it is. */\n.bre-effort-slot {\n grid-column: 1 / -1;\n min-width: 0;\n}\n/* The slot wrapper is a plain column: the master thinking switch sits in it,\n directly above the card it gates. */\n.bre-effort-editor {\n display: flex;\n flex-direction: column;\n gap: 8px;\n margin: 8px 0 4px;\n}\n/* The \u601D\u8003\u5F3A\u5EA6 panel proper \u2014 rendered only while the master switch is on.\n User item 8: the 0.5px outline goes away \u2014 \u6846\u91CC\u753B\u6846, a frame drawn inside a\n frame, was the complaint. User item 3 then dropped the tinted fill too: the\n editor sits INSIDE the official card, so a grey slab read as a second card\n nested in the first. The panel now paints the same fill as the host's own\n row cards and takes its structure from spacing alone. */\n.bre-effort-card {\n display: flex;\n flex-direction: column;\n gap: 13px;\n padding: 13px 15px 12px;\n border: none;\n border-radius: var(--bre-r-md);\n background: var(--dsw-alias-settings-card-fill, #ffffff);\n box-sizing: border-box;\n}\n/* The editor's one-line head: the master switch with its title, the declared\n state, and the applied suggestion's provenance pill. */\n.bre-effort-top {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: 9px;\n}\n.bre-effort-state {\n font-size: 12px;\n color: var(--bre-ink-3);\n}\n.bre-effort-title {\n /* The section title reads as the panel's own heading: primary ink at the\n design's 13/500, not a grey caption \u2014 it names the row, the hints under\n it carry the explanation. The headers pane borrows the same face. */\n font-size: 13px;\n font-weight: 500;\n letter-spacing: -0.005em;\n color: var(--bre-ink);\n}\n/* The master switch, at the board's small size: a 28x16 track with a 12px knob.\n The native checkbox stays \u2014 it is the accessible control, it keeps the row\n keyboard-operable, and it is what the tests click \u2014 but it is transparent and\n stretched over the track it drives. */\n.bre-thinking-switch {\n position: relative;\n display: inline-flex;\n align-items: center;\n gap: 7px;\n flex: none;\n margin: 0;\n cursor: pointer;\n}\n.bre-thinking-switch input[type='checkbox'] {\n position: absolute;\n left: 0;\n top: 50%;\n z-index: 1;\n width: 28px;\n height: 16px;\n margin: -8px 0 0;\n padding: 0;\n opacity: 0;\n cursor: pointer;\n}\n.bre-effort-switch-track {\n position: relative;\n flex: none;\n width: 28px;\n height: 16px;\n border-radius: var(--bre-r-pill);\n background: var(--bre-switch-track);\n transition: background var(--bre-t) var(--bre-ease);\n}\n.bre-effort-switch-track::after {\n content: '';\n position: absolute;\n top: 2px;\n left: 2px;\n width: 12px;\n height: 12px;\n border-radius: 50%;\n background: var(--bre-switch-knob);\n box-shadow: 0 1px 2px #0f111533;\n transition: transform var(--bre-t) var(--bre-ease);\n}\n.bre-thinking-switch input:checked + .bre-effort-switch-track {\n background: var(--dsw-alias-brand-primary, #4d6bfe);\n}\n.bre-thinking-switch input:checked + .bre-effort-switch-track::after {\n transform: translateX(12px);\n}\n.bre-thinking-switch input:focus-visible + .bre-effort-switch-track {\n box-shadow: 0 0 0 3px var(--bre-accent-glow);\n}\n.bre-thinking-switch input:disabled + .bre-effort-switch-track {\n opacity: 0.4;\n cursor: default;\n}\n/* The applied suggestion, as the board's pill: 22px, a hairline, quiet ink, and\n the accent glyph that marks it as advice rather than state. */\n.bre-effort-suggest {\n display: inline-flex;\n align-items: center;\n gap: 5px;\n max-width: 100%;\n height: 22px;\n padding: 0 8px;\n border-radius: var(--bre-r-pill);\n border: 1px solid var(--bre-line-2);\n background: var(--bre-surface);\n font-size: 11px;\n color: var(--bre-ink-2);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.bre-effort-suggest svg {\n flex: none;\n color: var(--bre-accent);\n}\n.bre-link-button {\n background: none;\n border: none;\n padding: 2px 6px;\n font-size: 12px;\n color: var(--dsw-alias-link);\n cursor: pointer;\n border-radius: 4px;\n}\n.bre-link-button:hover { text-decoration: underline; }\n.bre-link-button:disabled { opacity: 0.5; cursor: default; text-decoration: none; }\n.bre-auto-effort {\n /* Seated in the OFFICIAL catalogue head, among the host's own controls, so it\n wears THEIR metrics instead of the plugin's blue underlined link look\n (user request: \"\u4E0D\u8981\u8D85\u94FE\u63A5\u6837\u5F0F\uFF0C\u8DDF\u53E6\u5916\u4E24\u4E2A\u4FDD\u6301\u4E00\u81F4\"). These values mirror\n the host's own linkButton rule; the seat cannot simply take that class,\n because it would then answer the probe that finds the anchor it sits after.\n No extra margin: the head's own 12px gap already spaces it exactly like the\n controls beside it. */\n box-sizing: border-box;\n display: inline-flex;\n align-items: center;\n height: 28px;\n padding: 0 10px;\n border: none;\n border-radius: var(--dsw-radius-sm, 8px);\n background: none;\n color: var(--dsw-alias-label-tertiary, #6b7280);\n font: inherit;\n font-size: 12px;\n line-height: 18px;\n cursor: pointer;\n flex: none;\n}\n.bre-auto-effort:hover {\n background: var(--dsw-alias-interactive-bg-hover, #2631480f);\n color: var(--dsw-alias-label-secondary, #374151);\n}\n/* The level ladder is a row of toggle pills: the armed ones carry the accent\n tint alone (\u9009\u4E2D\u7684\u6863\u4F4D\u9AD8\u4EAE\u5373\u53EF\uFF0C\u65E0\u9700\u5BF9\u52FE), the rest stay quiet outlines. One\n click is one declaration. The pills are TIGHT \u2014 seven levels must sit on one\n line in the row disclosure (a wrapped ladder with an orphaned last pill reads\n as two ladders); the wire spellings live folded behind the link beneath. */\n.bre-pillrow {\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n}\n/* The level ladder and the modality pair share one pill face: 28px, an\n 8px corner and a hairline stroke, so a row of them reads as one control. The\n armed pill is the DESIGN's selection \u2014 accent tint, accent edge, accent ink,\n and NO tick (\u9009\u4E2D\u7684\u6863\u4F4D\u9AD8\u4EAE\u5373\u53EF\uFF0C\u65E0\u9700\u5BF9\u52FE: a second glyph would also shift the\n row's width every time a level is clicked). */\n.bre-lvl {\n appearance: none;\n display: inline-flex;\n align-items: center;\n gap: 4px;\n height: 28px;\n padding: 0 10px;\n border-radius: var(--bre-r-sm);\n border: 1px solid var(--bre-line-3);\n background: var(--bre-surface);\n color: var(--bre-ink-2);\n font: inherit;\n font-size: 12px;\n line-height: 1;\n white-space: nowrap;\n cursor: pointer;\n transition: all var(--bre-t) var(--bre-ease);\n}\n.bre-lvl:hover:not(:disabled) {\n border-color: var(--bre-line-4);\n color: var(--bre-ink);\n}\n.bre-lvl:focus-visible {\n outline: none;\n border-color: var(--bre-accent);\n box-shadow: 0 0 0 3px var(--bre-accent-glow);\n}\n.bre-lvl:disabled { opacity: 0.55; cursor: default; }\n.bre-lvl.is-on {\n border-color: var(--bre-accent-line);\n background: var(--bre-accent-weak);\n color: var(--bre-accent-ink);\n font-weight: 500;\n}\n/* A level the stored ladder names but this draft leaves unarmed: still\n clickable, simply standing back (the board's is-dim state). */\n.bre-lvl.is-dim { opacity: 0.45; }\n/* The modality pair: the glyph is the identity, so it takes the wider padding\n and carries its own ink \u2014 quiet when the declaration does not include it, the\n accent when it does. */\n.bre-lvl--opt { gap: 6px; padding: 0 11px; }\n.bre-lvl--opt svg { flex: none; color: var(--bre-ink-3); }\n.bre-lvl--opt.is-on svg { color: var(--bre-accent); }\n/* The slider's head, written above the track (\u8FDB\u5EA6\u6761\u4E0A\u65B9\uFF1A\u601D\u8003\u7B49\u7EA7 + \u5F53\u524D\u7B49\u7EA7):\n the section name on the left, the level under the thumb on the right. One\n accent, so the value reads as \"this is the current setting\", not as a rank. */\n.bre-effort-slider-head {\n display: flex;\n align-items: baseline;\n justify-content: space-between;\n gap: 8px;\n margin-bottom: 6px;\n}\n.bre-effort-slider-head-label {\n font-size: 11.5px;\n line-height: 18px;\n color: var(--bre-ink-3);\n}\n.bre-effort-slider-head-value {\n font-size: 12.5px;\n line-height: 18px;\n font-weight: 600;\n letter-spacing: -.005em;\n color: var(--bre-accent-ink);\n}\n/* The level slider: the composer menu's reasoning-level footer. A long ladder\n wrapped its capsule row inside the popover (\u601D\u8003\u7B49\u7EA7\u9009\u62E9\u6362\u6210\u8FDB\u5EA6\u6761\u6837\u5F0F); a\n track is fixed-length whatever the ladder's size, the stop names written\n below it.\n\n The rainbow ramp is GONE: a red stop read as \"danger\" where the interface\n meant \"more\", and the seven-hue scale was the one place the plugin spoke a\n colour language the host never uses. What is left is the host's own accent\n for \"where the thumb is\" and tick marks for \"how many stops there are\". */\n.bre-effort-slider {\n position: relative;\n height: 18px;\n cursor: pointer;\n touch-action: none;\n}\n.bre-effort-slider::before {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n top: 50%;\n height: 6px;\n transform: translateY(-50%);\n border-radius: 999px;\n background: var(--bre-track);\n}\n.bre-effort-slider:focus-visible {\n outline: none;\n border-radius: 999px;\n box-shadow: 0 0 0 3px var(--bre-accent-glow);\n}\n.bre-effort-slider-fill {\n position: absolute;\n left: 0;\n right: 0;\n top: 50%;\n height: 6px;\n transform: translateY(-50%);\n border-radius: 999px;\n background: var(--bre-accent);\n pointer-events: none;\n}\n/* The remaining stops, sunk into the track as 2px holes. Painted white on the\n light theme and near-black on the dark one: they are holes, not dots, so they\n take the surface colour rather than an ink colour. */\n.bre-effort-slider-tick {\n position: absolute;\n top: 50%;\n width: 2px;\n height: 2px;\n margin-left: -1px;\n margin-top: -1px;\n border-radius: 50%;\n background: var(--bre-surface);\n opacity: .9;\n pointer-events: none;\n}\n.bre-effort-slider-thumb {\n position: absolute;\n top: 50%;\n width: 14px;\n height: 14px;\n border-radius: 999px;\n transform: translate(-50%, -50%);\n background: var(--bre-surface);\n box-shadow: 0 0 0 1px var(--bre-accent-line), 0 1px 3px #0f11152e;\n pointer-events: none;\n /* User item 4: a committed level used to teleport the thumb. The two settling\n nodes glide instead \u2014 and the glide is switched off the moment the pointer\n takes the track, or the drag itself would lag one frame behind the finger. */\n transition: left var(--bre-t) var(--bre-ease);\n}\n.bre-effort-slider-fill {\n transition: clip-path var(--bre-t) var(--bre-ease);\n}\n.bre-effort-slider[data-bre-dragging='true'] .bre-effort-slider-thumb,\n.bre-effort-slider[data-bre-dragging='true'] .bre-effort-slider-fill {\n transition: none;\n}\n/* The stops, written under the track: first left-aligned, last right-aligned,\n the middle ones centred on their stop, so the row never wraps. */\n.bre-effort-slider-labels {\n position: relative;\n height: 14px;\n margin: 5px 2px 0;\n}\n.bre-effort-slider-label {\n position: absolute;\n transform: translateX(-50%);\n font-size: 9.5px;\n line-height: 14px;\n letter-spacing: -.02em;\n color: var(--bre-ink-hint);\n white-space: nowrap;\n}\n.bre-effort-slider-label.is-first { transform: none; }\n.bre-effort-slider-label.is-last { transform: translateX(-100%); }\n.bre-effort-slider-label.is-on {\n color: var(--bre-accent-ink);\n font-weight: 600;\n}\n/* A section of the panel: the label row, the hint that explains it, and the\n control group. The board spaces the three at 9px, and gives the label row a\n 22px floor so a section with a trailing action still lines up with one that\n has none. */\n.bre-effort-sec {\n display: flex;\n flex-direction: column;\n gap: 9px;\n}\n.bre-effort-labelrow {\n display: flex;\n align-items: center;\n gap: 8px;\n min-height: 22px;\n}\n.bre-effort-label {\n font-size: 12px;\n font-weight: 500;\n letter-spacing: -0.005em;\n color: var(--bre-ink-2);\n}\n/* User item 8: the explanation moved OUT of the label row. As an ellipsised\n fragment beside the label it was unreadable at the disclosure's width; on its\n own line at 11/16 the whole sentence fits, which is what the board draws. */\n.bre-effort-hint {\n font-size: 11px;\n line-height: 16px;\n color: var(--bre-ink-4);\n}\n.bre-effort-grow { flex: 1 1 auto; min-width: 0; }\n/* The label row's trailing action (\u81EA\u52A8\u9002\u914D): the board's quiet button \u2014 26px,\n a hairline, quiet ink \u2014 not a link. */\n.bre-effort-adapt {\n flex: none;\n display: inline-flex;\n align-items: center;\n gap: 5px;\n height: 26px;\n padding: 0 9px;\n margin-left: auto;\n border: 1px solid var(--bre-line-2);\n border-radius: var(--bre-r-sm);\n background: var(--bre-surface);\n color: var(--bre-ink-2);\n font: inherit;\n font-size: 11.5px;\n cursor: pointer;\n transition: background var(--bre-t) var(--bre-ease), border-color var(--bre-t) var(--bre-ease), color var(--bre-t) var(--bre-ease);\n}\n.bre-effort-adapt:hover:not(:disabled) {\n border-color: var(--bre-line-4);\n color: var(--bre-ink);\n}\n.bre-effort-adapt:disabled { opacity: 0.5; cursor: default; }\n.bre-effort-adapt svg { flex: none; color: var(--bre-accent); }\n/* The quiet link that unfolds the armed levels' wire spellings: 22px tall at\n 11.5px, hanging at the left edge of the group it opens. */\n.bre-effort-wiretoggle {\n align-self: flex-start;\n display: inline-flex;\n align-items: center;\n gap: 4px;\n height: 22px;\n margin: 0;\n padding: 0 2px;\n border: none;\n background: none;\n font: inherit;\n font-size: 11.5px;\n color: var(--bre-ink-3);\n cursor: pointer;\n}\n.bre-effort-wiretoggle:hover:not(:disabled) { color: var(--bre-ink); }\n.bre-effort-wiretoggle:disabled { opacity: 0.5; cursor: default; }\n.bre-effort-wiretoggle svg { flex: none; }\n/* The wire spellings: the board's own block \u2014 a white sheet on the sunken panel,\n one 92px name column and one value column per armed level, the value set in\n the code face so a spelling's punctuation is legible. */\n.bre-wire {\n display: flex;\n flex-direction: column;\n gap: 8px;\n padding: 10px 12px;\n border: 1px solid var(--bre-line-1);\n border-radius: var(--bre-r-sm);\n background: var(--bre-surface);\n}\n.bre-wire-grid {\n display: grid;\n grid-template-columns: 92px minmax(0, 1fr);\n gap: 6px 10px;\n align-items: center;\n}\n.bre-wire-name {\n font-size: 11px;\n letter-spacing: 0.01em;\n color: var(--bre-ink-4);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n/* The sections below the ladder sit in two columns on a wide disclosure and\n stack on a narrow one: the board's 1fr 1fr, floored so a squeezed column\n never wraps a note into three lines. */\n.bre-effort-cols {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n gap: 18px;\n align-items: start;\n}\n.bre-effort-wire {\n box-sizing: border-box;\n width: 100%;\n min-width: 0;\n height: 26px;\n padding: 0 8px;\n border: 1px solid var(--bre-line-2);\n border-radius: 6px;\n background: var(--bre-surface);\n color: var(--bre-ink-2);\n font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;\n font-size: 11px;\n text-overflow: ellipsis;\n}\n.bre-effort-wire::placeholder { color: var(--bre-ink-4); }\n.bre-effort-wire:focus {\n outline: none;\n border-color: var(--bre-accent);\n box-shadow: 0 0 0 3px var(--bre-accent-glow);\n}\n/* A hairline between the panel's groups (the board's eff-sep). */\n.bre-effort-sep {\n height: 1px;\n margin: 0;\n border: none;\n background: var(--bre-line-1);\n}\n.bre-effort-actions {\n display: flex;\n gap: 8px;\n justify-content: flex-end;\n}\n/* The panel's only action is \u653E\u5F03\u4FEE\u6539, and the board draws it as a ghost \u2014 no\n border, no fill, quiet ink \u2014 so the row does not end on a second button-shaped\n promise beside the card's own \u4FDD\u5B58. */\n.bre-effort-actions .bre-secondary-button {\n height: 28px;\n padding: 0 10px;\n border-color: transparent;\n background: transparent;\n color: var(--bre-ink-2);\n font-size: 12px;\n}\n.bre-effort-actions .bre-secondary-button:hover:not(:disabled) {\n background: var(--bre-hover);\n color: var(--bre-ink);\n}\n.bre-secondary-button {\n height: 26px;\n padding: 0 12px;\n border-radius: 6px;\n font-size: 12px;\n cursor: pointer;\n border: 0.5px solid var(--dsw-alias-border-l3);\n}\n.bre-secondary-button:disabled { opacity: 0.5; cursor: default; }\n.bre-secondary-button { background: transparent; color: inherit; }\n.bre-effort-message { font-size: 12px; margin: 0; }\n.bre-effort-message.bre-error { color: #c62828; }\n.bre-effort-message.bre-info { color: var(--dsw-alias-link); }\n/* The note under a control: the board's third level of explanation \u2014 11/16 in\n the faintest ink, an optional 12px glyph hanging in the left margin. Kept as\n flowing text (not a flex row) because the headers pane writes whole sentences\n through this same class and a flex container would make every text run its own\n unwrappable item. */\n.bre-effort-note {\n font-size: 11px;\n line-height: 16px;\n margin: 0;\n color: var(--bre-ink-4);\n}\n.bre-effort-note svg {\n display: inline-block;\n vertical-align: -2px;\n margin-right: 6px;\n flex: none;\n color: var(--bre-ink-4);\n}\n/* The default-effort dropdown, drawn as the board's mini-select: a 30px white\n box with a hairline and the same 12px chevron the other selects use, so it\n reads as one of the panel's controls rather than a form field dropped in.\n It stays a REAL select (aria-label included) because that is what the row\n stores a level into. */\n.bre-effort-select {\n flex: none;\n width: 100%;\n max-width: 260px;\n height: 30px;\n min-width: 0;\n padding: 0 30px 0 9px;\n border: 1px solid var(--bre-line-3);\n border-radius: var(--bre-r-sm);\n background-color: var(--bre-surface);\n color: var(--bre-ink);\n font: inherit;\n font-size: 12.5px;\n cursor: pointer;\n appearance: none;\n background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%2381858C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\");\n background-repeat: no-repeat;\n background-position: right 9px center;\n background-size: 12px 12px;\n transition: border-color var(--bre-t) var(--bre-ease), box-shadow var(--bre-t) var(--bre-ease);\n}\n.bre-effort-select:hover:not(:disabled) { border-color: var(--bre-line-4); }\n.bre-effort-select:focus-visible {\n outline: none;\n border-color: var(--bre-accent);\n box-shadow: 0 0 0 3px var(--bre-accent-glow);\n}\n.bre-effort-select:disabled { opacity: 0.55; cursor: default; }\n.bre-select, .bre-text-input {\n box-sizing: border-box;\n width: 100%;\n max-width: 240px;\n height: 32px;\n padding: 0 10px;\n border: 0.5px solid var(--dsw-alias-border-l4);\n border-radius: 8px;\n background: var(--dsw-alias-bg-layer-1);\n color: var(--dsw-alias-label-primary);\n font: inherit;\n font-size: 14px;\n line-height: 22px;\n}\n/* Dimmed directly would be the host's skeleton tone (#e1e5ee) \u2014 the same trap the\n ink tokens now route around; placeholders read at tertiary like every other one. */\n.bre-text-input::placeholder { color: var(--bre-ink-4); }\n.bre-select:focus, .bre-text-input:focus {\n outline: none;\n border-color: var(--dsw-alias-brand-primary);\n /* The redesign's focus token: brand border over a soft brand halo, so the\n focused field reads at a glance without a hard outline. */\n box-shadow: 0 0 0 3px var(--dsw-alias-brand-primary-muted, rgba(77, 112, 255, .14));\n}\n.bre-select:disabled, .bre-text-input:disabled { opacity: 0.6; cursor: default; }\n.bre-select {\n cursor: pointer;\n /* The OS arrow sits flush against the right edge; the official select swaps\n it for the shared 12px chevron inset on the same right pad. Data-URI SVGs\n cannot resolve CSS variables, so the stroke is the caption gray both\n themes share. */\n appearance: none;\n padding-right: 32px;\n background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%2381858C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\");\n background-repeat: no-repeat;\n background-position: right 12px center;\n background-size: 12px 12px;\n}\n.bre-error { color: var(--dsw-alias-state-error-primary); }\n/* ---- Zoned suggestion display ---- */\n.bre-suggestion {\n display: flex;\n flex-direction: column;\n gap: 3px;\n}\n/* The two capacities are EDITABLE fields, not a footnote (user request: \u4E0A\u4E0B\u6587\n \u53C2\u6570/\u6700\u5927\u957F\u5EA6\u8FD9\u4E24\u4E2A\u53C2\u6570\u9700\u8981\u53EF\u4EE5\u914D\u7F6E): each is the row's own official input,\n mirrored here, so the label sits above a sunken field with the unit inside it.\n Blank is a value \u2014 \u6CBF\u7528\u76EE\u5F55\u503C \u2014 which is why the placeholder says so. */\n.bre-effort-caps {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n gap: 18px;\n}\n.bre-cap {\n display: flex;\n flex-direction: column;\n gap: 7px;\n min-width: 0;\n}\n.bre-cap-box {\n display: flex;\n align-items: center;\n gap: 8px;\n height: 30px;\n padding: 0 9px;\n border-radius: var(--bre-r-sm);\n border: 1px solid var(--bre-line-3);\n background: var(--bre-surface);\n transition: border-color var(--bre-t) var(--bre-ease), box-shadow var(--bre-t) var(--bre-ease);\n}\n.bre-cap-box:hover { border-color: var(--bre-line-4); }\n.bre-cap-box:focus-within {\n border-color: var(--bre-accent);\n box-shadow: 0 0 0 3px var(--bre-accent-glow);\n}\n.bre-cap-input {\n flex: 1 1 auto;\n min-width: 0;\n border: none;\n background: none;\n outline: none;\n padding: 0;\n font: inherit;\n font-size: 12.5px;\n font-variant-numeric: tabular-nums;\n color: var(--bre-ink);\n}\n.bre-cap-input::placeholder { color: var(--bre-ink-4); }\n.bre-cap-input:disabled { color: var(--bre-ink-4); cursor: default; }\n.bre-cap-unit {\n flex: none;\n font-size: 10.5px;\n letter-spacing: 0.02em;\n color: var(--bre-ink-4);\n}\n/* A warning note: the board keeps the sentence in quiet ink and puts the colour\n on the glyph alone, so a panel with two warnings does not read as two alarms.\n The headers pane has no glyph in its notes and re-colours them for itself. */\n.bre-effort-note.bre-warn {\n color: var(--bre-ink-3);\n}\n.bre-effort-note.bre-warn svg { color: var(--bre-warn); }\n/* ---- Composer model menu (mounted inside the OFFICIAL menu) ----\n The body and host sizing follow HanaAyane's dsh-reasoning-effort (MIT).\n The model and reasoning-level rows below use the current row/list UI. */\n.bre-slider-body {\n /* The replicated popover body. The official menu shell carries padding: 4px\n (ModelSelect.module.css), so pull the replica flush to the box. overflow\n stays VISIBLE: an open list is laid out inside the body, so nothing ever\n has to escape it, and the rows' own hover radius needs no clipping. */\n overflow: visible;\n margin: -4px;\n padding: 8px;\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n/* The official menu is content-sized; while the replicated popover body is\n live, its box takes the upstream .re-model-menu width. The class is added\n by the mount and removed when the slider is switched off. */\n.bre-model-menu-host {\n width: min(340px, calc(100vw - 32px));\n min-width: 0;\n}\n/* The official trigger keeps ownership of its model/effort children. The\n provider prefix is a pseudo-element so host React updates, focus handling and\n the click target remain untouched.\n\n Scoped to the composer, which owns the only button that carries this stamp.\n The settings sidebar's account button is ALSO an [aria-haspopup=\"menu\"]\n button, so an unscoped rule paints the prefix onto the account row the\n moment a stale stamp lands there \u2014 and a stamp that escaped the composer\n must render nothing rather than relabel a host control. The seat anchor is\n listed too, so a shell that renders the trigger outside the card body still\n gets the prefix. */\n[data-composer-card] button[data-bre-provider]::before,\n[data-slot=\"conversation.input.model\"] button[data-bre-provider]::before {\n content: attr(data-bre-provider) \" \u00B7 \";\n flex: none;\n color: var(--dsw-alias-label-secondary);\n font-weight: 400;\n white-space: nowrap;\n}\n\n/* ---- Model switcher body ----\n One quiet head names the current model; the provider and model columns are\n ALWAYS visible (no drill-in row); a resident search box sits above them; the\n reasoning level is switched in place on a single-accent track. No panel ever\n opens or closes, so the body's height is settled at mount and the commit paths\n carry no re-measure dance.\n\n The redesign's two rules on this surface: no boxed-in-box (the only strokes\n are the search's focus ring and one hairline between the columns), and one\n accent, spent only on \"this is the selection\". */\n.bre-card {\n display: flex;\n flex-direction: column;\n gap: 6px;\n}\n/* The head: a small caps-free label on the left, the current model pushed right\n with its provider muted behind it. The level used to be repeated here as a\n pill; it now lives once, in the footer, where it is also editable. */\n.bre-menu-head {\n display: flex;\n align-items: center;\n gap: 8px;\n height: 30px;\n padding: 0 2px;\n}\n.bre-menu-cur {\n display: inline-flex;\n align-items: baseline;\n gap: 6px;\n min-width: 0;\n margin-left: auto;\n}\n.bre-menu-name {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n max-width: 150px;\n font-size: 13px;\n font-weight: 600;\n letter-spacing: -.005em;\n color: var(--bre-ink);\n}\n.bre-menu-prov {\n flex: none;\n font-size: 10.5px;\n color: var(--bre-ink-hint);\n white-space: nowrap;\n}\n/* The resident search. Deliberately its OWN class family (not the official\n pane's .bre-search-input-*): the replica and the official search box share a\n menu, and every probe that looks for the official box must not find the\n replica's. The box is a sunken well, not an outlined field: the field's stroke\n would be the second rectangle on a surface that already has the card's edge. */\n.bre-menu-search { padding: 0; }\n.bre-menu-search-box {\n display: flex;\n align-items: center;\n position: relative;\n width: 100%;\n height: 30px;\n padding: 0 4px 0 8px;\n box-sizing: border-box;\n border-radius: var(--bre-r-sm);\n background: var(--bre-sunken);\n border: 1px solid transparent;\n color: var(--bre-ink-4);\n transition: background var(--bre-t) var(--bre-ease), border-color var(--bre-t) var(--bre-ease),\n box-shadow var(--bre-t) var(--bre-ease);\n}\n.bre-menu-search-box:focus-within {\n background: var(--bre-surface);\n border-color: var(--bre-accent);\n box-shadow: 0 0 0 3px var(--bre-accent-glow);\n}\n.bre-menu-search-icon {\n display: flex;\n align-items: center;\n justify-content: center;\n flex: 0 0 16px;\n width: 16px;\n height: 16px;\n margin-right: 6px;\n color: inherit;\n pointer-events: none;\n}\n.bre-menu-search-icon svg { width: 13px; height: 13px; }\n.bre-menu-search-input {\n flex: 1 1 auto;\n min-width: 0;\n height: 100%;\n padding: 0;\n border: none;\n outline: none;\n background: transparent;\n color: var(--bre-ink);\n font: inherit;\n font-size: 12.5px;\n line-height: 18px;\n}\n.bre-menu-search-input::placeholder {\n color: var(--bre-ink-4);\n opacity: 1;\n}\n.bre-menu-search-clear {\n display: flex;\n align-items: center;\n justify-content: center;\n flex: 0 0 20px;\n width: 20px;\n height: 20px;\n margin-left: 4px;\n padding: 0;\n border: none;\n border-radius: 5px;\n background: var(--bre-sunken-2);\n color: var(--bre-ink-3);\n cursor: pointer;\n transition: background var(--bre-t) var(--bre-ease), color var(--bre-t) var(--bre-ease);\n}\n.bre-menu-search-clear:hover {\n background: var(--bre-active);\n color: var(--bre-ink);\n}\n.bre-menu-search-clear svg { width: 12px; height: 12px; }\n/* The provider cell's model count, where the drill chevron used to sit: the\n columns are always open, so the number is the only fact a chevron added. */\n.bre-provider-count {\n flex: none;\n margin-left: auto;\n font-size: 10px;\n font-variant-numeric: tabular-nums;\n color: var(--bre-ink-hint);\n}\n/* While the search holds a query the model column lists matches across every\n provider; the muted prefix says which one each row belongs to. */ \n.bre-option-origin { color: var(--bre-ink-hint); }\n/* The footer: the reasoning level switched IN PLACE \u2014 its name on the left and\n the level under the thumb on the right, above a 6px track whose stops are\n tick marks and whose names are written under it. The track spans the full\n width, so each name sits under its own stop whatever the ladder's size. */\n.bre-menu-foot {\n display: flex;\n flex-direction: column;\n padding-top: 8px;\n border-top: 1px solid var(--bre-line-1);\n}\n.bre-menu-slider {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n.bre-menu-slider:focus-within { outline: none; }\n/* Layout only \u2014 it deliberately paints NO background, border, radius or\n overflow clip. The replica is mounted inside the OFFICIAL menu, and that\n shell already draws its own surface (MenuSurface: a [data-menu-material]\n panel whose .material child paints --dsw-menu-surface-fill, i.e.\n --dsw-specific-menu, under backdrop-filter: var(--dsw-menu-backdrop-filter),\n rounded by --dsw-radius-lg and outlined by --dsw-elevation-prominent).\n A second opaque card in here shows that official surface as a grey frame\n around it \u2014 two stacked surfaces where every other menu in the app has one. */\n.bre-row-label {\n flex: none;\n font-size: 11.5px;\n line-height: 18px;\n font-weight: 500;\n letter-spacing: .02em;\n color: var(--bre-ink-hint);\n}\n.bre-row-value {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n text-align: right;\n font-size: 12.5px;\n line-height: 18px;\n font-weight: 600;\n letter-spacing: -.005em;\n color: var(--bre-accent-ink);\n}\n.bre-row-value.is-muted { font-weight: 400; color: var(--bre-ink-hint); }\n.bre-panel {\n display: flex;\n flex-direction: column;\n gap: 1px;\n max-height: 220px;\n overflow-y: auto;\n padding: 2px 6px 8px;\n}\n/* Provider column + model column of the model list, side by side. The height is\n FIXED: switching provider must not resize the card, or every click would need\n another same-frame re-place and any missed one shows as a jump. It is also\n BUDGETED: head + search + panel + footer must not exceed the height the\n official popover measured for the old two-row body, or the popover clips the\n footer's last line (\u5207\u6362\u6A21\u578B\u4E0B\u65B9\u88AB\u622A\u65AD). The slider head above the track\n (.bre-effort-slider-head: 18px of text + 6px of margin) is paid for OUT of\n this height, so the card's total is unchanged. */\n.bre-panel-models {\n flex-direction: row;\n align-items: stretch;\n gap: 0;\n height: 196px;\n max-height: none;\n overflow: hidden;\n padding: 0;\n}\n.bre-providers {\n flex: none;\n display: flex;\n flex-direction: column;\n gap: 1px;\n width: 104px;\n overflow-y: auto;\n padding-right: 4px;\n}\n.bre-provider-models {\n flex: 1 1 auto;\n min-width: 0;\n display: flex;\n flex-direction: column;\n gap: 1px;\n overflow-y: auto;\n margin-left: 6px;\n padding-left: 6px;\n border-left: 1px solid var(--bre-line-1);\n}\n.bre-option,\n.bre-provider {\n appearance: none;\n box-sizing: border-box;\n position: relative;\n display: flex;\n align-items: center;\n gap: 6px;\n width: 100%;\n min-height: 30px;\n flex: none;\n padding: 0 6px 0 8px;\n border: 0;\n border-radius: 7px;\n background: transparent;\n color: var(--bre-ink);\n font: inherit;\n font-size: 12.5px;\n line-height: 18px;\n text-align: left;\n cursor: pointer;\n transition:\n background var(--bre-t) var(--bre-ease),\n color var(--bre-t) var(--bre-ease),\n opacity var(--bre-t) var(--bre-ease);\n}\n/* The provider cell reads one step quieter than its models: it is the index, the\n models are the content. */\n.bre-provider { gap: 4px; color: var(--bre-ink-2); }\n.bre-option:hover:not(:disabled),\n.bre-provider:hover:not(:disabled) {\n background: var(--bre-hover);\n}\n/* User item 4 (the model list \"went grey and flashed\"): the row dim used to land\n and lift with no transition, so it read as a hard blink on every pick. It is\n also a gentler step now \u2014 .55 read as \"disabled\", which is not what a pick\n in flight means. Opacity is in the transition list above, so the fade is the\n same 160ms every other state change on the row uses. */\n.bre-option:disabled,\n.bre-provider:disabled { cursor: default; opacity: .72; }\n.bre-option:focus-visible,\n.bre-provider:focus-visible {\n outline: 2px solid var(--bre-accent);\n outline-offset: -2px;\n}\n.bre-option-name {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n/* The selection: one accent tint, accent ink, and a 2px bar on the column's own\n edge \u2014 the bar is what keeps \"open provider\" readable once the row is tinted\n (a tint alone at 10% is a whisper in a 104px column). */\n.bre-option.is-active {\n background: var(--bre-accent-weak);\n color: var(--bre-accent-ink);\n font-weight: 600;\n}\n.bre-provider.is-open {\n background: var(--bre-accent-weak);\n color: var(--bre-accent-ink);\n}\n.bre-provider.is-open::before {\n content: \"\";\n position: absolute;\n left: -4px;\n top: 7px;\n bottom: 7px;\n width: 2px;\n border-radius: 2px;\n background: var(--bre-accent);\n}\n.bre-provider.is-open .bre-provider-count { color: var(--bre-accent); opacity: .7; }\n/* The provider of the CURRENT model keeps its name at full weight, so the column\n says where the selection lives even when another provider is open. */\n.bre-provider.is-current .bre-option-name { font-weight: 600; color: var(--bre-ink); }\n.bre-provider.is-open.is-current .bre-option-name { color: var(--bre-accent-ink); }\n/* Capability badges on a model row (image input / thinking). Muted so the name\n stays the brightest thing in the row; the badge's own title carries the copy. */\n.bre-option-tags {\n flex: none;\n display: inline-flex;\n align-items: center;\n gap: 5px;\n color: var(--bre-ink-3);\n opacity: .78;\n}\n.bre-option.is-active .bre-option-tags { color: var(--bre-accent); opacity: .9; }\n.bre-tag { display: inline-flex; align-items: center; }\n.bre-tag-icon { display: block; width: 13px; height: 13px; }\n.bre-empty { padding: 8px; font-size: 12px; color: var(--bre-ink-hint); }\n\n/* ---- Truncated-label tooltip (custom, replaces the native title) ----\n A self-drawn bubble instead of the OS tooltip, which the page cannot style\n and which reads harsh next to the menu. Fixed-positioned on <body> so the\n menu's own overflow/clip cannot cut it, aligned under the truncated span,\n capped to the viewport with wrap for very long names. */\n.bre-tip {\n position: fixed;\n z-index: 2147483647;\n max-width: min(360px, calc(100vw - 24px));\n box-sizing: border-box;\n padding: 5px 9px;\n border-radius: 8px;\n background: var(--dsw-alias-bg-module-platform, #232630);\n color: var(--dsw-alias-label-primary, #f2f3f5);\n font-size: 12px;\n line-height: 18px;\n overflow-wrap: anywhere;\n white-space: normal;\n pointer-events: none;\n box-shadow: 0 4px 16px rgba(0, 0, 0, .22);\n animation: bre-tip-in 120ms ease-out;\n}\nbody:not([data-ds-dark-theme]) .bre-tip {\n background: #ffffff;\n color: var(--dsw-alias-label-primary, #1f2329);\n box-shadow: 0 4px 16px rgba(0, 0, 0, .14), 0 0 0 .5px var(--dsw-alias-border-l4, rgba(0, 0, 0, .1));\n}\n@keyframes bre-tip-in {\n from { opacity: 0; transform: translateY(-2px); }\n to { opacity: 1; transform: translateY(0); }\n}\n@media (prefers-reduced-motion: reduce) {\n .bre-tip { animation: none; }\n}\n.bre-effort {\n display: flex;\n align-items: center;\n width: 100%;\n min-width: 0;\n height: 32px;\n color: var(--dsw-alias-label-secondary);\n user-select: none;\n box-sizing: border-box;\n}\n/* upstream re-model-error: the directory/store error line under the row */\n.bre-model-error {\n margin: 8px;\n padding: 8px 10px;\n border-radius: 8px;\n color: var(--dsw-alias-state-error-primary, #c83e4d);\n background: var(--dsw-alias-state-error-tertiary, rgba(220,55,70,.08));\n font-size: 11px;\n}\n/* ---- Models-page slider toggle (boxed setting item) ----\n Item form ported VERBATIM from upstream .re-setting-row; the surrounding\n box is the requested container (border only, transparent background). */\n.bre-slider-setting {\n margin-top: 12px;\n padding: 0 14px;\n border: 1px solid var(--dsw-alias-stroke-secondary, rgba(121,126,145,.2));\n border-radius: 12px;\n background: transparent;\n}\n.bre-slider-setting-row {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 24px;\n padding: 16px 0;\n /* Upstream .re-setting-row carries a list bottom border because the general\n settings list held TWO rows (the slider + the big-fish toggle). This box\n holds exactly one, so no divider: the box itself is the container. */\n}\n.bre-slider-setting-copy { min-width: 0; }\n.bre-slider-setting-title {\n color: var(--dsw-alias-label-primary, #15171b);\n font-size: 14px;\n font-weight: 400;\n line-height: 22px;\n}\n.bre-slider-setting-description {\n margin-top: 3px;\n color: var(--dsw-alias-label-tertiary, #9296a0);\n font-size: 12px;\n line-height: 18px;\n}\n.bre-slider-setting-control { display: inline-flex; align-items: center; gap: 10px; flex: none; }\n.bre-slider-setting-state { color: var(--dsw-alias-label-secondary, #686c75); font-size: 13px; }\n.bre-slider-setting-switch {\n position: relative;\n width: 38px;\n height: 22px;\n padding: 0;\n border: 0;\n border-radius: 999px;\n background: var(--dsw-alias-fill-quaternary, #c7cbd3);\n cursor: pointer;\n transition: background 150ms ease;\n}\n.bre-slider-setting-switch:hover { filter: brightness(.97); }\n.bre-slider-setting-switch:disabled { cursor: not-allowed; opacity: .45; }\n.bre-slider-setting-switch:focus-visible {\n outline: 2px solid var(--dsw-static-blue-400, #5d83ff);\n outline-offset: 2px;\n}\n.bre-slider-setting-switch.is-on { background: var(--dsw-alias-brand-primary, #4d6bfe); }\n.bre-slider-setting-switch-knob {\n position: absolute;\n top: 2px;\n left: 2px;\n width: 18px;\n height: 18px;\n border-radius: 50%;\n background: #fff;\n box-shadow: 0 1px 4px rgba(0,0,0,.2);\n transition: transform 170ms cubic-bezier(.22,1,.36,1);\n}\n.bre-slider-setting-switch.is-on .bre-slider-setting-switch-knob { transform: translateX(16px); }\n\n/* Model selection search box */\n.bre-model-search-box {\n display: flex;\n flex-direction: column;\n padding: 6px 8px 4px;\n position: sticky;\n top: 0;\n z-index: 2;\n background: var(--dsw-specific-menu, var(--dsw-alias-bg-layer-1, #1e1f22));\n}\n.bre-model-search-box:has(.bre-search-empty),\n.bre-model-search-box.has-empty {\n flex: 1 1 auto;\n}\n.bre-search-input-wrapper {\n display: flex;\n align-items: center;\n position: relative;\n width: 100%;\n height: 32px;\n padding: 0 8px;\n box-sizing: border-box;\n border-radius: 8px;\n background: var(--dsw-alias-bg-layer-2, rgba(255, 255, 255, 0.06));\n border: 0.5px solid var(--dsw-alias-border-l4, rgba(255, 255, 255, 0.12));\n color: var(--dsw-alias-label-primary);\n transition: border-color 150ms ease, box-shadow 150ms ease;\n}\n.bre-search-input-wrapper:focus-within {\n border-color: var(--dsw-static-deepseek-500, #4d70ff);\n box-shadow: 0 0 0 2px rgba(77, 112, 255, 0.2);\n}\n.bre-search-icon {\n display: flex;\n align-items: center;\n justify-content: center;\n flex: 0 0 16px;\n width: 16px;\n height: 16px;\n margin-right: 6px;\n color: var(--dsw-alias-label-tertiary, #81858c);\n pointer-events: none;\n}\n.bre-search-icon svg {\n width: 14px;\n height: 14px;\n}\n.bre-search-input {\n flex: 1 1 auto;\n min-width: 0;\n height: 100%;\n padding: 0;\n border: none;\n outline: none;\n background: transparent;\n color: inherit;\n font: inherit;\n font-size: 13px;\n line-height: 20px;\n}\n.bre-search-input::placeholder {\n color: var(--dsw-alias-label-tertiary, #81858c);\n opacity: 0.85;\n}\n.bre-search-clear {\n display: flex;\n align-items: center;\n justify-content: center;\n flex: 0 0 18px;\n width: 18px;\n height: 18px;\n margin-left: 4px;\n padding: 0;\n border: none;\n border-radius: 4px;\n background: transparent;\n color: var(--dsw-alias-label-tertiary, #81858c);\n cursor: pointer;\n transition: background 120ms ease, color 120ms ease;\n}\n.bre-search-clear:hover {\n background: var(--dsw-alias-interactive-bg-hover, rgba(255, 255, 255, 0.1));\n color: var(--dsw-alias-label-primary);\n}\n.bre-search-clear svg {\n width: 12px;\n height: 12px;\n}\n.bre-search-empty {\n display: flex;\n align-items: center;\n justify-content: center;\n flex: 1 1 auto;\n min-height: 180px;\n padding: 24px 16px;\n text-align: center;\n color: var(--dsw-alias-label-tertiary, #81858c);\n font-size: 13px;\n line-height: 20px;\n user-select: none;\n}\n\n/* ---- Request-header section (issue #12). Mounted through the official\n settings.models.provider-card seat, so it sits in the card's own layout\n rather than a disclosure grid.\n\n Every value below was MEASURED off the official Models page's own controls\n in DSH 0.1.7-rc.2 rather than guessed, and each is expressed through the same\n --dsw-alias-* token the host paints with, so a theme switch (light/dark)\n repaints this section along with the page:\n\n provider card radius 20px, 1px var(--dsw-alias-settings-card-stroke)\n editor action save = filled var(--dsw-alias-button-primary-fill), h36,\n radius 12px, 0 14px, 14px; cancel = 1px border, same box\n row action h28, radius 8px, 0 10px, 12px, 1px border\n text link h21, radius 4px, 2px 6px, 12px, link-blue label\n text input radius 12px, 0 10px, 1px var(--dsw-alias-border-l3) ---- */\n/* The provider-card slot's wrapper.\n The official slot mounts us inside a display:contents container, so our own\n root IS a flex item of the card row \u2014 and the row lays its children out with\n a 12px gap. A wrapper that stays in the flow while empty therefore adds one\n phantom gap to EVERY card in the list, which is exactly the height regression\n this rule exists to prevent. Collapsed, the wrapper leaves the flow entirely:\n the card renders as it did before the plugin.\n (Deliberately NOT display:contents here \u2014 that keeps it a gap-participating\n item, which is the bug this rule fixes.)\n Open, it becomes an ordinary block so the section below can lay itself out.\n data-edit lives HERE \u2014 the occurrence component publishes the card's state\n onto its own root, so keying the rule on .bre-headers[data-edit] instead\n would silently never match. */\n.bre-headers-host {\n display: none;\n}\n.bre-headers-host[data-edit=\"1\"] {\n display: block;\n}\n.bre-headers {\n display: flex;\n flex-direction: column;\n gap: 8px;\n /* The card lays its own children out with a 12px gap and no dividers; this\n section is an addition to that column, so it separates itself the same way\n the host separates card sections \u2014 a hairline on the card's own stroke. */\n border-top: 1px solid var(--dsw-alias-border-l2, #0000001a);\n padding-top: 12px;\n\n /* Present ONLY while the provider card is being edited.\n The provider list is a list of providers: a request-header row parked in\n every card, collapsed or not, is noise on a surface the user did not ask\n to configure. The card reveals its editor when the user presses its own\n Edit action, and that is the moment this section belongs on screen \u2014 the\n same gesture that opens the model list opens this.\n\n The visibility is decided by the component (which watches the card and\n sets data-edit on the wrapper), not by a selector: the official editor is\n NOT a sibling of this element \u2014 its container sits in the card row's own\n children, after the row head and this section's own wrapper \u2014 so no\n relative selector can reach it. The wrapper's data-edit is the one fact\n CSS can act on.\n\n Degradation is safe by construction: with no observer (no card ancestor to\n watch) data-edit stays \"0\", the section is never revealed, and the\n official page stays clean rather than leaking a row into every card. */\n display: none;\n}\n.bre-headers-host[data-edit=\"1\"] .bre-headers {\n display: flex;\n}\n/* The collapsed heading is the section's identity while the card is being\n edited: title, configured count, and the \u203A that opens the details. */\n.bre-headers-disclosure {\n display: flex;\n align-items: center;\n gap: 6px;\n width: 100%;\n padding: 0;\n border: none;\n background: transparent;\n color: inherit;\n font: inherit;\n text-align: left;\n cursor: pointer;\n}\n.bre-headers-disclosure:hover .bre-effort-title {\n color: var(--dsw-alias-label-secondary, #61666b);\n}\n.bre-headers-chevron {\n margin-left: auto;\n padding-right: 2px;\n color: var(--dsw-alias-label-tertiary, #81858c);\n font-size: 14px;\n line-height: 1;\n transition: transform 150ms ease;\n}\n.bre-headers[data-open=\"1\"] .bre-headers-chevron { transform: rotate(90deg); }\n/* How many entries are configured \u2014 the one fact worth showing while closed. */\n.bre-headers-count {\n min-width: 16px;\n padding: 0 5px;\n border-radius: 8px;\n background: var(--dsw-alias-interactive-bg-hover, #2631480f);\n color: var(--dsw-alias-label-secondary, #61666b);\n font-size: 11px;\n line-height: 16px;\n text-align: center;\n}\n/* The head is a plain title row on the card's own white \u2014 the tinted strip it\n used to be drew a second bar inside the card (user item 3). \u5168\u90E8\u6E05\u7A7A sits at\n the far right, blue like the host's other text actions. */\n.bre-headers-head {\n display: flex;\n align-items: center;\n gap: 8px;\n min-height: 28px;\n padding: 0;\n background: none;\n}\n.bre-headers-head .bre-effort-title {\n color: var(--dsw-alias-label-primary, #0f1115);\n font-weight: 600;\n}\n.bre-headers-clear {\n margin-left: auto;\n padding: 0 2px;\n border: none;\n background: none;\n color: var(--dsw-alias-link, #4d6bfe);\n font: inherit;\n font-size: 13px;\n line-height: 20px;\n cursor: pointer;\n}\n.bre-headers-clear:hover:not(:disabled) { text-decoration: underline; }\n.bre-headers-clear:disabled { opacity: 0.5; cursor: default; text-decoration: none; }\n.bre-headers-edit, .bre-headers-rows {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n/* Columns and rows share one grid so the captions sit over their inputs. The\n row itself is bare: the inputs are the boxes, a second border around the\n pair was the old \"framed row\" look (board image 4). */\n.bre-headers-columns,\n.bre-headers-row {\n display: grid;\n grid-template-columns: minmax(120px, 1fr) minmax(180px, 1.6fr) 28px;\n align-items: center;\n gap: 10px;\n}\n.bre-headers-columns {\n padding: 0 2px;\n color: var(--dsw-alias-label-tertiary, #81858c);\n font-size: 12px;\n line-height: 18px;\n}\n.bre-headers-row {\n min-height: 0;\n padding: 0;\n border: none;\n background: none;\n}\n.bre-headers-edit .bre-headers-row { min-height: 38px; }\n.bre-headers-add {\n align-self: flex-start;\n display: inline-flex;\n align-items: center;\n gap: 6px;\n height: 38px;\n padding: 0 14px;\n border: 1px dashed var(--dsw-alias-border-l3, #0000001f);\n border-radius: var(--dsw-radius-md, 12px);\n background: transparent;\n color: var(--dsw-alias-label-primary, #0f1115);\n font: inherit;\n font-size: 13px;\n line-height: 20px;\n cursor: pointer;\n}\n.bre-headers-add::before {\n content: '+';\n color: var(--dsw-alias-label-tertiary, #81858c);\n font-size: 17px;\n line-height: 1;\n}\n.bre-headers-add:hover:not(:disabled) {\n border-color: var(--dsw-alias-border-l4, #00000033);\n background: var(--dsw-alias-interactive-bg-hover, #2631480f);\n}\n.bre-headers-add:disabled { opacity: 0.5; cursor: default; }\n.bre-headers-remove {\n justify-self: center;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 28px;\n height: 28px;\n padding: 0;\n border: none;\n border-radius: 6px;\n background: transparent;\n color: var(--dsw-alias-label-tertiary, #81858c);\n font-size: 18px;\n line-height: 1;\n cursor: pointer;\n}\n.bre-headers-remove:hover:not(:disabled) {\n background: var(--dsw-alias-interactive-bg-hover, #2631480f);\n color: var(--dsw-alias-label-primary, #0f1115);\n}\n.bre-headers-remove:disabled { opacity: 0.5; cursor: default; }\n.bre-headers-rows .bre-headers-name {\n color: var(--dsw-alias-label-secondary, #61666b);\n font-size: 12px;\n word-break: break-all;\n}\n.bre-headers-masked {\n color: var(--dsw-alias-label-tertiary, #81858c);\n font-family: ui-monospace, SFMono-Regular, Menlo, monospace;\n letter-spacing: 0;\n}\n\n/* The section's commit/dismiss pair, matching the official editor's own\n actions: a filled commit and a bordered dismiss, 36px tall at 14px.\n .bre-headers-actions is the same pair pulled OUT of the header editor: in\n the \u9AD8\u7EA7\u914D\u7F6E pane the row closes the whole pane, so it sits after every\n section and must not inherit the rows' size rules from a parent that is no */\n.bre-headers-edit .bre-primary-button,\n.bre-headers-actions .bre-primary-button {\n height: 36px;\n padding: 0 14px;\n border: none;\n border-radius: var(--dsw-radius-md, 12px);\n background: var(--dsw-alias-button-primary-fill, #0f1115);\n color: var(--dsw-alias-label-primary-foreground, #fff);\n font-size: 14px;\n font-weight: 400;\n line-height: 1;\n cursor: pointer;\n}\n.bre-headers-edit .bre-primary-button:hover:not(:disabled),\n.bre-headers-actions .bre-primary-button:hover:not(:disabled) {\n background: var(--dsw-alias-button-primary-hover, #43454a);\n}\n.bre-headers-edit .bre-primary-button:disabled,\n.bre-headers-actions .bre-primary-button:disabled { opacity: 0.5; cursor: default; }\n.bre-headers-edit .bre-secondary-button,\n.bre-headers-actions .bre-secondary-button {\n height: 36px;\n padding: 0 14px;\n border: 1px solid var(--dsw-alias-border-l3, #0000001f);\n border-radius: var(--dsw-radius-md, 12px);\n background: transparent;\n color: var(--dsw-alias-label-primary, #0f1115);\n font-size: 14px;\n}\n.bre-headers-edit .bre-secondary-button:hover:not(:disabled),\n.bre-headers-actions .bre-secondary-button:hover:not(:disabled) {\n background: var(--dsw-alias-interactive-bg-hover, #2631480f);\n}\n/* The row that closes the pane. It gets room, not a rule: the last section\n already carries the pane's divider on its title row, so a line here would\n draw a second one with nothing between them to divide. */\n.bre-headers-actions {\n padding-top: 12px;\n}\n\n/* The row actions and the section's Edit affordance: the official 28px\n bordered small button, and the 21px blue text link the model rows use. */\n.bre-headers-row .bre-link-button {\n height: 28px;\n padding: 2px 8px;\n border: none;\n border-radius: var(--dsw-radius-sm, 8px);\n background: transparent;\n color: var(--dsw-alias-label-secondary, #61666b);\n font-size: 12px;\n line-height: 1;\n}\n.bre-headers-row .bre-link-button:hover:not(:disabled) {\n background: var(--dsw-alias-interactive-bg-hover, #2631480f);\n}\n.bre-headers .bre-effort-head > .bre-link-button {\n height: 28px;\n padding: 0 10px;\n border: 1px solid var(--dsw-alias-border-l2, #0000001a);\n border-radius: var(--dsw-radius-sm, 8px);\n color: var(--dsw-alias-label-primary, #0f1115);\n font-size: 12px;\n text-decoration: none;\n}\n.bre-headers .bre-effort-head > .bre-link-button:hover:not(:disabled) {\n background: var(--dsw-alias-interactive-bg-hover, #2631480f);\n text-decoration: none;\n}\n.bre-headers-edit .bre-link-button {\n color: var(--dsw-alias-label-secondary, #61666b);\n font-size: 12px;\n}\n\n/* The section's own fields, on the official input box: 38px tall and full\n width, so the pair reads as one table row like board image 4. */\n.bre-headers-edit input.bre-text-input {\n max-width: none;\n height: 38px;\n padding: 0 12px;\n border: 1px solid var(--dsw-alias-border-l3, #0000001f);\n border-radius: var(--dsw-radius-md, 12px);\n background: var(--dsw-alias-bg-layer-1, #fff);\n color: var(--dsw-alias-label-primary, #0f1115);\n font-size: 13px;\n box-sizing: border-box;\n}\n.bre-headers-edit input.bre-text-input:focus {\n border-color: var(--dsw-alias-brand-primary, #4d6bfe);\n box-shadow: 0 0 0 3px var(--dsw-alias-brand-primary-muted, rgba(77, 112, 255, .14));\n outline: none;\n}\n.bre-headers-edit input.bre-text-input:disabled { opacity: 0.6; cursor: default; }\n\n/* Status copy and the coexistence warnings, on the host's own state colours. */\n.bre-headers .bre-effort-note.bre-warn { color: var(--dsw-alias-state-warn-label, #dd8629); }\n.bre-headers .bre-effort-message.bre-success { color: var(--dsw-alias-state-success-primary, #22c55e); }\n.bre-headers .bre-effort-message.bre-error { color: var(--dsw-alias-state-error-primary, #ec1313); }\n\n@media (max-width: 520px) {\n .bre-headers-columns { display: none; }\n .bre-headers-row {\n grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) 28px;\n gap: 6px;\n padding: 4px;\n }\n .bre-headers-edit input.bre-text-input {\n padding: 0 8px;\n font-size: 12px;\n }\n}\n\n/* ---- Provider row reordering (Models page) ---- */\n\n/* The whole row header is the drag handle: an 18px grip is a poor thing to\n have to hit, so a drag may start anywhere on the header that is not one of\n the card's own controls (those keep their own cursor, declared below). */\nli[data-bre-row-head='1'] { cursor: grab; }\nli[data-bre-row-head='1']:active { cursor: grabbing; }\nli[data-bre-row-head='1'] button,\nli[data-bre-row-head='1'] a,\nli[data-bre-row-head='1'] input { cursor: pointer; }\n\n/* The grip is mounted as the first child of that header, so it reads as part\n of the row rather than as a control bolted beside it. It is also the button\n that reorders by keyboard. */\n.bre-drag-grip {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex: 0 0 auto;\n width: 14px;\n height: 20px;\n margin-right: 2px;\n border-radius: 4px;\n color: var(--dsw-alias-label-tertiary, #81858c);\n cursor: grab;\n touch-action: none;\n}\n\n.bre-drag-grip:hover {\n color: var(--dsw-alias-label-secondary, #61666b);\n background: var(--dsw-alias-interactive-bg-hover, #2631480f);\n}\n\n.bre-drag-grip:focus-visible {\n outline: 2px solid var(--dsw-alias-brand-primary);\n outline-offset: 1px;\n}\n\n.bre-drag-grip:active { cursor: grabbing; }\n\n/* What the pointer carries: the browser's own drag image would be a screenshot\n of a whole card, so we hand it this chip with the provider name instead. */\n.bre-drag-ghost {\n position: fixed;\n display: inline-flex;\n align-items: center;\n gap: 6px;\n max-width: 260px;\n padding: 5px 10px 5px 7px;\n border: 1px solid var(--dsw-alias-border-secondary, #e6e8eb);\n border-radius: 8px;\n background: var(--dsw-alias-bg-elevated, #ffffff);\n box-shadow: 0 6px 18px #0000002e;\n color: var(--dsw-alias-label-primary, #17181a);\n font-size: 13px;\n line-height: 18px;\n pointer-events: none;\n transform: translate(-50%, -50%);\n z-index: 60;\n}\n\n.bre-drag-ghost-name {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.bre-drag-ghost svg { color: var(--dsw-alias-label-tertiary, #81858c); }\n\n/* The row the drag is carrying: still in place, visibly the one in hand. */\nli.bre-row-dragging { opacity: .5; }\n\n/* The row the pointer would drop it on \u2014 a secondary cue; the insertion line\n below is the one that says which side. */\nli.bre-row-drop-target { border-color: var(--dsw-alias-brand-primary); }\n\n/* The insertion line. A fixed overlay on the body, never a child of the list\n React owns, so writing it cannot trigger anything in the official section.\n The layer stack matters more than it looks: the provider list lives inside the\n settings dialog, whose overlay is fixed and opaque with z-index 1000, so a\n line in the shell's own range would be drawn behind the dialog and never\n seen. It clears the dialog, and stays under the header's controls. */\n.bre-drop-line {\n position: fixed;\n display: none;\n height: 2px;\n border-radius: 2px;\n background: var(--dsw-alias-brand-primary, #4d6bfe);\n box-shadow: 0 0 0 1px #ffffffb3, 0 1px 4px var(--dsw-alias-brand-primary, #4d6bfe);\n pointer-events: none;\n z-index: 1200;\n}\n\n/* The row slide (a FLIP pass driven from the script) is motion; drop it for a\n reader who asked for less. */\n@media (prefers-reduced-motion: reduce) {\n li[data-bre-row-provider] { transition: none !important; }\n}\n\n@media (max-width: 520px) {\n .bre-drag-grip { width: 18px; height: 24px; }\n .bre-drag-ghost { max-width: 180px; font-size: 12px; }\n}\n\n/* ---- Model rows inside one provider's editor (Models page) ---- */\n\n/* The official model row is a four-column grid (id, display name, two icon\n buttons). Our grip is a fifth child, so the grid needs a leading track to\n hold it \u2014 declared by our own class, because the official rule is a single\n class selector and ours has to win on specificity, not on load order.\n Keep the host grid's class distinct from the composer's row controls so\n shared naming cannot lend menu-row styling to the host's grid. */\n.bre-model-grid[class*=\"modelRow\"] {\n grid-template-columns: auto minmax(0, 1.4fr) minmax(0, 1fr) auto auto;\n}\n\n/* A model row is a grid of inputs, so only the grip drags: the row keeps its\n text cursor and its own click behaviour. The grip takes the height of the\n row's controls, so the pointer has a real target inside a 6px-gap grid. */\n.bre-model-grid > .bre-drag-grip {\n width: 18px;\n height: 24px;\n margin-right: 0;\n}\n\n/* The engine paints the carried row and the row under the pointer with the same\n classes it uses on a provider card; the official model entry carries the\n border, so the drop cue has to land there rather than on the list item. */\ndiv.bre-row-dragging { opacity: .5; }\n[class*=\"modelEntry\"].bre-row-drop-target { border-color: var(--dsw-alias-brand-primary); }\n\n/* The row slide (a FLIP pass driven from the script) is motion; drop it for a\n reader who asked for less. */\n@media (prefers-reduced-motion: reduce) {\n [data-bre-row-model] { transition: none !important; }\n}\n\n/* The blank a shrinking model list leaves behind, appended to the panel's own\n scroll host (see holdListSlack in models-page-editor): it holds the host's\n scroll RANGE open so deleting a row cannot clamp the view down. Height is\n written inline from the script \u2014 it is the range being held, not a style \u2014\n and the element must never take layout from above or a pointer from the user. */\n.bre-list-slack {\n flex: 0 0 auto;\n pointer-events: none;\n}\n\n/* ---- Provider enable switch (Models page) ---- */\n\n/* Leads the row's own action group (which is pushed right by margin-left:auto),\n in front of the card's buttons, so the destructive one stays last. The knob is\n a pseudo element: no extra node for the official section's tree to trip over. */\n.bre-provider-switch {\n position: relative;\n flex: 0 0 auto;\n width: 30px;\n height: 18px;\n padding: 0;\n border: none;\n border-radius: 9px;\n background: var(--dsw-alias-bg-tertiary, #d7dae0);\n cursor: pointer;\n transition: background 140ms ease;\n}\n\n.bre-provider-switch::after {\n content: '';\n position: absolute;\n top: 2px;\n left: 2px;\n width: 14px;\n height: 14px;\n border-radius: 50%;\n background: var(--dsw-alias-bg-elevated, #ffffff);\n box-shadow: 0 1px 2px #00000026;\n transition: transform 140ms ease;\n}\n\n.bre-provider-switch:not([aria-checked='true']):hover { background: var(--dsw-alias-bg-quaternary, #c9ccd2); }\n\n.bre-provider-switch[aria-checked='true'] { background: var(--dsw-alias-brand-primary, #4d6bfe); }\n\n.bre-provider-switch[aria-checked='true']:hover { background: var(--dsw-alias-brand-primary-hover, #3f5ce8); }\n\n.bre-provider-switch[aria-checked='true']::after { transform: translateX(12px); }\n\n.bre-provider-switch:focus-visible {\n outline: 2px solid var(--dsw-alias-brand-primary, #4d6bfe);\n outline-offset: 2px;\n}\n\n/* A provider that is switched off stays on the page \u2014 this is the only place it\n can be switched back on \u2014 but it is visibly out of play. The switch itself is\n left at full strength: it is the way back. */\nli.bre-row-disabled [class*=\"rowIdentity\"],\nli.bre-row-disabled [class*=\"rowName\"] { opacity: .5; }\n\n@media (prefers-reduced-motion: reduce) {\n .bre-provider-switch,\n .bre-provider-switch::after { transition: none; }\n}\n\n/* ---- The reserved delete seat (Models page) ---- */\n\n/* A provider the host will not let the user remove renders no delete button, so\n that row's action group \u2014 pushed right by margin-left:auto \u2014 starts further\n right than its neighbours' and the column of buttons lines up raggedly. This\n seat holds the place: it borrows the metrics the official button takes inside\n an action group (.rowActions button is 28px tall / 12px / 0 10px) and the\n dimmed treatment the host gives its own disabled buttons (opacity .4 with a\n default cursor). It is always disabled \u2014 it is the alignment, not an action. */\n.bre-provider-delete {\n box-sizing: border-box;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n height: 28px;\n padding: 0 10px;\n border: none;\n border-radius: var(--dsw-radius-sm, 6px);\n background: 0 0;\n color: var(--dsw-alias-state-error-primary, #e5484d);\n font: inherit;\n font-size: 12px;\n line-height: 18px;\n opacity: .4;\n cursor: default;\n}\n\n/* ---- The folded group of switched-off providers (Models page) ---- */\n\n/* A switched-off provider keeps its row \u2014 that is where it is switched back on \u2014\n but it does not have to stay in the list the user reads. The row keeps its DOM\n slot (the drag pass reads its slots back out of there) and is ordered behind\n the group's control instead, so unfolding shows the group UNDER that control\n rather than scattered through the providers that are on.\n\n !important, because the drag passes write an inline order onto the rows they\n arrange: a folded row is not one of the rows the user is arranging, so the\n tail belongs to this stylesheet, not to the last drag that ran. */\n.bre-row-folded { order: 1001 !important; }\n\n/* The seat: the list item that carries the control, in front of the folded rows\n and behind every provider that is switched on. It is a list item of the host's\n own flex column \u2014 the only place from which a control can head rows inside the\n list \u2014 and it holds no card of its own, only the quiet end of the host's text\n scale. */\n.bre-provider-disabled-seat {\n box-sizing: border-box;\n order: 1000 !important;\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n.bre-provider-disabled-group {\n box-sizing: border-box;\n display: block;\n width: 100%;\n margin: 4px 0 0;\n padding: 4px 2px;\n border: none;\n background: 0 0;\n color: var(--dsw-alias-label-tertiary, #81858c);\n font: inherit;\n font-size: 12px;\n line-height: 18px;\n text-align: left;\n cursor: pointer;\n}\n\n.bre-provider-disabled-group:hover { color: var(--dsw-alias-label-secondary, #61666b); }\n\n.bre-provider-disabled-group:focus-visible {\n outline: 2px solid var(--dsw-alias-brand-primary, #4d6bfe);\n outline-offset: 2px;\n}\n\n/* The folded row itself. !important because the official card class decides its\n own display, and this stylesheet's order against the host's is not ours to\n rely on. */\n.bre-row-hidden { display: none !important; }\n\n/* A row action held by the settle guard (settle-guard.ts): the host has disabled\n the button for the post-apply reload, but the save already answered the click\n and the list is not what changed. The attribute stays on the element only\n while that reload runs \u2014 it is the painted opacity that is restored here, not\n the disabled state, so the button stays inert exactly as long as the host\n means it to. !important, because the official :disabled rule is what sets\n the .4. */\n[data-bre-settle] { opacity: 1 !important; }\n\n/* -----------------------------------------------------------------------\n The provider editor's three tabs.\n\n The official editor lays a provider out as one long column \u2014 identity\n fields, then the model list, then this plugin's request-header section\n one slot up the card. The tab pass (injection/editor-tabs.ts) tags each\n region and stamps the card with the active tab; EVERY visibility decision\n lives here, so the official React tree never moves and a pass failure\n degrades to the untouched one-column editor.\n ----------------------------------------------------------------------- */\n\n/* The segmented control. The plugin's tab-bar component renders it inside the\n request-header mount, which already holds the card's 12px gap slot \u2014 so the\n bar reaches the panes in the card's own rhythm WITHOUT this plugin ever\n inserting a node into the official child list. It stays hidden until the pass\n marks the card: a card the pass could not take over (the DeepSeek account\n editor) keeps that mount visible for its request-header section, and must not\n grow a bar that switches nothing. */\n/* The tab bar. The old segmented track (grey rail + lifted white pill) is\n retired for the underline form the redesign settles on: a quiet text row over\n one hairline, the active tab named by a brand bar under its own text \u2014 one\n emphasis, no second surface to stack on the card's. */\n.bre-editor-tabs {\n display: none;\n gap: 20px;\n padding: 0;\n border-radius: 0;\n background: transparent;\n border-bottom: 1px solid var(--dsw-alias-border-l2, #0000001a);\n}\n\n/* Only a taken-over card shows the bar. */\n.bre-tabbed .bre-editor-tabs { display: flex; }\n\n/* ...and while the takeover is on, the mount holding that bar MUST be visible.\n This is the one place the takeover does not delegate its reveal to the\n official-edit state: the bar lives in here, and gating it on the _editor\n class probe would make the tabs depend on a probe an official redesign can\n break \u2014 with data-edit stuck at 0 the bar would be inside a display:none\n parent and no rule of ours could reach it. The taken-over class is written by\n the pass itself, in the same frame, so it is the trustworthy half of the\n pair. The section's own visibility stays a pane decision (below). */\n.bre-tabbed .bre-headers-host { display: block; }\n\n/* The create-provider card's CUSTOM form has no slot to render a bar into: the\n official page dispatches the provider-card slot inside the catalogue half\n only, so the create-card pass (injection/add-card.ts) mounts a bar of its own\n at the top of the form. Same contract as the mount above \u2014 hidden until the\n pass marks the card, the card's own gap rhythm once it does \u2014 so an\n untaken-over card is exactly the official one. */\n.bre-create-host {\n display: none;\n}\n.bre-tabbed .bre-create-host {\n display: block;\n}\n\n/* User item 6: every card on the settings page carried a tinted base fill \u2014 the\n configured row's card, the add/setup card, the editor body inside it, the\n advanced pane \u2014 so a stack of cards read as a stack of grey blocks on a white\n page. The card's own hairline is what draws it here; the fill steps back to\n the page's background, which is the one value that is \"no colour\" in both\n themes (bg-base is the content surface the page itself paints).\n The marks are the plugin's own where it has one (data-bre-editor-body is the\n tag this takeover puts on the official editor), and the official module card\n stems where it does not: those class names carry a build hash, so they are\n matched by stem and never spelled out. */\n.bre-tabbed [class*='rowCard'],\n.bre-tabbed [class*='addCard'],\n.bre-tabbed [class*='setupCard'],\n.bre-tabbed [data-bre-editor-body],\n/* The add-provider card is not a DESCENDANT of the takeover: the takeover sits\n inside it. The add-card pass marks the card itself, and this pair of\n selectors is what turns its module-platform fill into the page's white. */\n[class*='addCard'][data-bre-add-card='1'] {\n background: var(--dsw-alias-settings-card-fill, #ffffff);\n}\n\n/* The advanced pane is whitened where its own rule is defined, further down. */\n\n/* With the custom API form the only way left to add a provider, the official\n \"How to add\" switch has nothing to switch. The pass hides it ONLY once that\n form is really up: a card that has no custom form to offer, or a takeover\n that stepped back, keeps the switch \u2014 and with it the official explanation\n of why the other half is unavailable. */\n.bre-add-mode-picker {\n display: none;\n}\n\n.bre-editor-tab {\n flex: 0 1 auto;\n min-width: 0;\n height: 32px;\n padding: 0 2px;\n border: none;\n border-radius: 0;\n background: transparent;\n color: var(--dsw-alias-label-secondary, #61666b);\n font: inherit;\n font-size: 13px;\n font-weight: 400;\n line-height: 1;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n cursor: pointer;\n position: relative;\n transition: color 140ms ease;\n}\n\n.bre-editor-tab:hover { color: var(--dsw-alias-label-primary, #0f1115); }\n\n/* The selected tab is named by the bar under its own text, not by a filled\n pill: the indicator occupies the bar's own hairline, so no second surface\n and no extra height. Hover on a selected tab stays put \u2014 it is already\n where you are. */\n.bre-editor-tab::after {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n bottom: -1px;\n height: 2px;\n border-radius: 2px;\n background: transparent;\n transition: background 140ms ease;\n}\n\n.bre-editor-tab[aria-selected='true'],\n.bre-editor-tab[aria-selected='true']:hover {\n background: transparent;\n color: var(--dsw-alias-label-primary, #0f1115);\n font-weight: 500;\n box-shadow: none;\n}\n\n.bre-editor-tab[aria-selected='true']::after {\n background: var(--dsw-alias-brand-primary, #4d6bfe);\n}\n\n.bre-editor-tab:focus-visible {\n outline: 2px solid var(--dsw-alias-brand-primary, #4d6bfe);\n outline-offset: 1px;\n}\n\n/* An advanced section with no headers mount (pre-first-render, feature off)\n offers an empty pane \u2014 the button steps aside until the mount exists. */\n.bre-editor-tab[hidden] { display: none; }\n\n/* Pane visibility, keyed on the card's active tab. Only the HIDING has to win\n a specificity fight (against the official sheet and the headers host's own\n reveal rule); the active pane keeps whatever display the official layout\n gave it, so showing must not declare a display at all. */\n.bre-tabbed:not([data-bre-tab='provider']) [data-bre-region='provider'],\n.bre-tabbed:not([data-bre-tab='models']) [data-bre-region='models'],\n.bre-tabbed:not([data-bre-tab='fingerprint']) [data-bre-region='fingerprint'],\n.bre-tabbed:not([data-bre-tab='advanced']) [data-bre-region='advanced'] {\n display: none !important;\n}\n\n/* The provider pane's form reads as the redesign's two-column grid: the label\n takes a fixed leading column, the control fills the rest. Promoting the\n host label's children with display:contents keeps the label-input\n association (the label element stays the control's parent in the DOM) while\n letting the span and the control land in their own columns. Scoped to the\n taken-over provider pane and the host's measured field shape, so a kernel\n that changed its markup simply keeps its own stacked layout. The endpoint\n field opts out: its family chip + title row is its own shape (the design's\n endpoint row), and its title carries the \u66F4\u591A\u7AEF\u70B9 toggle besides. */\n.bre-tabbed[data-bre-tab='provider'] [data-bre-editor-body] .field:not([data-bre-endpoint-field]) {\n display: grid;\n grid-template-columns: 96px minmax(0, 1fr);\n align-items: center;\n column-gap: 8px;\n}\n.bre-tabbed[data-bre-tab='provider'] [data-bre-editor-body] .field:not([data-bre-endpoint-field]) > label {\n display: contents;\n}\n/* The input sits BESIDE its label \u2014 the same two-column shape on every card,\n create or edit (\u65B0\u589E\u4F9B\u5E94\u5546\u7684 api \u5BC6\u94A5\u5B57\u6BB5\u4E0E\u4FEE\u6539\u5361\u4E0D\u4E00\u81F4). A field with no\n label of its own (the provider id on the create card) spans the form instead\n of squeezing into the label column. The endpoint field's input keeps its own\n grid's second column \u2014 the same specificity race, won back explicitly. */\n.bre-tabbed[data-bre-tab='provider'] [data-bre-editor-body] .field > input { grid-column: 2; }\n.bre-tabbed[data-bre-tab='provider'] [data-bre-editor-body] .field:not(:has(> label)) > input { grid-column: 1 / -1; }\n.bre-tabbed[data-bre-tab='provider'] [data-bre-editor-body] [data-bre-endpoint-field] > input { grid-column: 2; }\n/* The extra address rows need no indent of their own: their chip is the same\n fixed 96px prefix the field's chip takes, so the row's input already sits in\n the field input's column (see .bre-endpoint-family above). */\n/* The card's commit row reads as the footer the design gives every card: one\n hairline above, the pair right-aligned beneath it, on every tab that shows\n the card's own fields. */\n.bre-tabbed [data-bre-editor-body] [class*='editorActions'] {\n margin-top: 6px;\n padding-top: 12px;\n border-top: 1px solid var(--dsw-alias-border-l2, #0000001a);\n}\n\n/* The advanced tab: the official body \u2014 fields, model list \u2014 steps aside for the\n request-header section, which is a complete form with its own save/cancel and\n becomes the pane under the very same bar. What does NOT step aside is the\n card's own commit row wherever the pass has marked one (data-bre-footer): on\n the create card that row IS the \u521B\u5EFA\u63D0\u4F9B\u5546 this pane's draft is written with,\n and a user who has just typed the headers is standing on this tab. An ordinary\n card keeps the old behaviour \u2014 its body steps aside wholesale, advanced pane\n and save included, because that pane carries a save of its own. */\n.bre-tabbed[data-bre-tab='advanced'] [data-bre-editor-body]:not([data-bre-footer]) {\n display: none !important;\n}\n\n/* A card whose commit row is kept: the body and every wrapper on the path to that\n row stay, but inside them only the path shows. The row is marked 'row' and not\n 'path' on purpose: a wrapper's unmarked children are exactly the fields and\n layout the tab is stepping away from, while the row's children are the buttons\n being kept. Panes the tabs own stay hidden by the region rule above. */\n.bre-tabbed[data-bre-tab='advanced'] [data-bre-footer='path'] > *:not([data-bre-footer]) {\n display: none !important;\n}\n\n/* The advanced pane shows the section for the same reason the mount is shown:\n a pane that is already the active one has no business depending on the\n official-edit probe. The rule above still wins for every other tab, and the\n base bre-headers rule keeps a collapsed card's section hidden \u2014 a card only\n carries the taken-over class while its editor is open. */\n.bre-tabbed[data-bre-tab='advanced'] .bre-headers { display: flex; }\n\n/* The pane is a card, and the section draws it. On the advanced tab the section\n is not an appendage to the fields above it any more \u2014 it is the whole surface.\n The hairline goes: it divided this section from those fields, and here the bar\n above ends the pane. The 12px top margin sets the card off the tab bar above\n it \u2014 the same gap the provider and models panes put between the bar and their\n own cards \u2014 and the 12px padding is the card's inner inset, not the separator.\n User item 3: the fill is the page's own background, not the tinted module\n platform. The pane sits on a white card; a grey slab there was a second card\n drawn inside the first. Its inset is carried by the padding and the bar's\n hairline, so dropping the fill costs no structure. */\n.bre-tabbed[data-bre-tab='advanced'] .bre-headers {\n margin-top: 12px;\n padding: 12px;\n border-top: none;\n border-radius: var(--dsw-radius-lg, 16px);\n background: var(--dsw-alias-bg-base, #ffffff);\n}\n\n/* The pane's heading is not a fold head. The grey pill, its hover state and\n the \u203A that opens the card section have no job in a pane that is always open\n and named by the tab above it, so the title drops back to plain text. It\n keeps the title row's weight the section uses everywhere else \u2014 the head\n strip and the hint both step aside for it, which is what makes the title\n the line the hint reads under rather than an equal of it. */\n.bre-tabbed[data-bre-tab='advanced'] .bre-headers-head {\n min-height: 0;\n padding: 0;\n background: none;\n}\n.bre-tabbed[data-bre-tab='advanced'] .bre-headers-head .bre-effort-title {\n font-size: 13px;\n line-height: 20px;\n}\n\n/* The live editor folds its identity fields and model list into one\n \"Customized\" disclosure. Under the tabs the grouping is the panes' job: the\n group stays expanded (the pass forces it open) and its summary row \u2014 now a\n toggle with nothing left to toggle \u2014 steps aside. */\n.bre-tabbed [data-bre-editor-body] details > summary {\n display: none !important;\n}\n\n/* A region that is NOT a pane. The editor's own header repeats the card row's\n provider name and route tag, and that row is already on screen directly above\n it, so the header is hidden on every tab. No pane rule above can select this\n id, which is what keeps it hidden whichever tab is active. */\n.bre-tabbed [data-bre-region='none'] {\n display: none !important;\n}\n\n/* The Models pane shows the custom model list and the catalogue, and two\n hairlines used to divide it: the \"Customized\" group's separator from the key\n field (which this pane hides) and the catalogue's own, drawn directly above\n its \"Model catalogue\" heading. Neither has anything to divide here \u2014 the tab\n bar already ends the pane above, and the divider between the two lists above\n the catalogue is the group's boundary, not a rule. Both go, with every top\n padding that held content off them (the group's 10px, its body's 12px, the\n catalogue's 12px), so the pane runs from the tab bar into the catalogue with\n only the official editor's own 14px gap between blocks. */\n.bre-tabbed[data-bre-tab='models'] [data-bre-editor-body] details[class*='customized'] {\n border-top: none;\n padding-top: 0;\n}\n\n.bre-tabbed[data-bre-tab='models'] [data-bre-editor-body] details[class*='customized'] > [class*='customizedBody'] {\n padding-top: 0;\n}\n\n/* The catalogue is a section (its heading, title and meta are the divs inside\n it), so this probe hits the ruled box and nothing else. */\n.bre-tabbed[data-bre-tab='models'] [data-bre-editor-body] section[class*='modelCatalog'] {\n border-top: none;\n padding-top: 0;\n}\n\n/* The catalogue heading names a box this pane has already named for the user:\n the Models tab IS the catalogue, so \"\u6A21\u578B\u76EE\u5F55\" says it twice, and\n \"\u5DF2\u81EA\u5B9A\u4E49\u6A21\u578B\u76EE\u5F55\" (the meta line beside it) says nothing at all \u2014 the rows\n below ARE the customized catalogue. Both strings are the host's own, so they\n go by class stem, and the heading takes its title and meta with it. The\n head's own controls (\u6062\u590D\u9ED8\u8BA4\u6A21\u578B / \u83B7\u53D6\u53EF\u7528\u6A21\u578B) are siblings of the heading,\n not children, so they stay \u2014 the auto-adapt seat is anchored to them. */\n.bre-tabbed[data-bre-tab='models'] [data-bre-editor-body] [class*='modelCatalogHeading'] {\n display: none;\n}\n\n/* With the heading gone the head holds only controls, and they read as TWO\n ENDS: \u6062\u590D\u9ED8\u8BA4\u6A21\u578B stays at the left edge while \u83B7\u53D6\u53EF\u7528\u6A21\u578B keeps the\n auto-adapt seat beside it at the far right \u2014 the seat belongs to that link's\n group, it is never a column of its own. The official space-between cannot\n express that once a third child exists: it spreads the three evenly, which\n strands the fetch link in the middle of the card. So the free space is handed\n to the fetch link's own leading auto margin instead \u2014 an auto margin absorbs\n the space BEFORE justify-content is consulted, whatever the official rule\n says. align-items centres the taller host links against the seat.\n\n The pin must NOT wait for the seat to exist: a card with no models shows the\n fetch link alone, and space-between puts a lone child at the START \u2014 so the\n link sat at the left edge until the first fetch seated the control beside it\n and shoved it right, the jump the user reported. Hence two selectors: the\n link that the seat follows, and the fetch link while it is still the LAST\n control of the head (the seat is a button too, so a last-of-type selector\n alone would eventually pin the seat instead). Either way the link holds the\n right edge from the first paint to the last. */\n.bre-tabbed[data-bre-tab='models'] [data-bre-editor-body] [class*='modelListHead'] {\n align-items: center;\n}\n.bre-tabbed[data-bre-tab='models'] [data-bre-editor-body] [class*='modelListHead'] > button:has(+ .bre-auto-effort),\n.bre-tabbed[data-bre-tab='models'] [data-bre-editor-body] [class*='modelListHead'] > button:not(.bre-auto-effort):last-of-type {\n margin-left: auto;\n}\n\n/* The click's answer, as a bubble at the top of the window that takes itself\n away again \u2014 and the official save line's answer too\n (injection/saved-notice.ts), which is raised the same way with the same\n done phase, so one shape covers both. The control is left alone on\n purpose: its label is what the user aimed at, and a button that rewrites\n itself is a button that moved. The\n bubble is a fixed overlay on the body \u2014 not a child of the head, which is the\n host's flex row and would take a fourth item \u2014 and it clears the settings\n dialog's opaque overlay for the same reason the drop line does. It follows\n the host's own toast in placement and tone, but not in z-index: the settings\n dialog's overlay outranks the toast layer, and this bubble is raised from\n inside that dialog. Pointer-events none keeps it out of the way, the phase\n colours the headline so the outcome reads before the words do, and the\n hold/fade pair is timed by --bre-note-hold, which the script sets from the\n same constant it uses for the dismissal. The fade is counted INSIDE that\n hold, so the bubble is gone when the clock says it is, rather than fading\n after it. */\n.bre-auto-effort-note {\n position: fixed;\n top: 40px;\n left: 50%;\n display: flex;\n flex-direction: column;\n gap: 2px;\n width: max-content;\n max-width: min(640px, calc(100vw - 48px));\n padding: 10px 14px;\n border-radius: 10px;\n background: var(--dsw-alias-toast-bg, #2b2f36);\n color: var(--dsw-alias-toast-label, #f9fafb);\n box-shadow: var(--dsw-shadow-lv3, 0 6px 24px #00000029);\n font-size: 13px;\n line-height: 20px;\n pointer-events: none;\n transform: translateX(-50%);\n animation: bre-note-in 160ms ease-out, bre-note-out 400ms ease calc(var(--bre-note-hold, 3000ms) - 400ms) forwards;\n z-index: 1200;\n}\n/* A pass in flight has no lifetime of its own: it is replaced by its verdict,\n which restarts both animations because the phase changes the rule. */\n.bre-auto-effort-note[data-bre-auto-effort-phase='working'] {\n animation: bre-note-in 160ms ease-out;\n}\n@keyframes bre-note-in {\n from { opacity: 0; transform: translate(-50%, -6px); }\n to { opacity: 1; transform: translate(-50%, 0); }\n}\n@keyframes bre-note-out {\n to { opacity: 0; visibility: hidden; }\n}\n@media (prefers-reduced-motion: reduce) {\n .bre-auto-effort-note {\n animation: bre-note-out 400ms ease calc(var(--bre-note-hold, 3000ms) - 400ms) forwards;\n }\n .bre-auto-effort-note[data-bre-auto-effort-phase='working'] { animation: none; }\n}\n.bre-auto-effort-note-text { font-weight: 500; }\n.bre-auto-effort-note-detail { opacity: .72; }\n/* The attribute is the visibility switch, so it must beat the flex column above. */\n.bre-auto-effort-note-detail[hidden] { display: none; }\n.bre-auto-effort-note[data-bre-auto-effort-phase='working'] .bre-auto-effort-note-text {\n color: var(--dsw-alias-state-business-primary, #6ea8fe);\n}\n.bre-auto-effort-note[data-bre-auto-effort-phase='done'] .bre-auto-effort-note-text {\n color: var(--dsw-alias-state-success-primary, #22c55e);\n}\n.bre-auto-effort-note[data-bre-auto-effort-phase='failed'] .bre-auto-effort-note-text {\n color: var(--dsw-alias-state-error-secondary, #ff8a80);\n}\n\n/* The API-key eye. The official key field is a plain flex column whose input is\n its last in-flow child, so the button hangs on the field's own box and is\n measured against the input's 32px row \u2014 the official markup offers no\n wrapper, and introducing one would mean moving DOM the host owns. The input\n keeps the room the button needs. */\n.bre-key-field { position: relative; }\n\n.bre-key-field > input { padding-right: 34px; }\n\n/* A field the plugin's key list manages hands its input over: the list below\n says the same thing once per key and keeps the pick, the alias and the value\n in one place, so an official box that writes the provider's single key would\n be a second, conflicting way to do it. The input stays in the DOM \u2014 the\n host's form still owns it and the reveal pass still finds it \u2014 so unmanaging\n the field brings the official box back. The marker is what the reveal pass\n stamps on that input; the direct-child form covers the pass that has not run\n yet, and the eye is the button the same pass hangs on the field. */\n.bre-key-managed [data-bre-key-input],\n.bre-key-managed > input,\n.bre-key-managed .bre-key-eye { display: none; }\n\n/* A field that failed validation grows a message line under the input; the eye\n rides above it so it stays on the input it belongs to (18px line + 6px gap). */\n.bre-key-field:has(> p) .bre-key-eye { bottom: 24px; }\n\n.bre-key-eye {\n position: absolute;\n right: 4px;\n bottom: 0;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 28px;\n height: 32px;\n padding: 0;\n border: 0;\n border-radius: 8px;\n background: transparent;\n color: var(--dsw-alias-label-secondary, #6b7280);\n cursor: pointer;\n -webkit-appearance: none;\n appearance: none;\n transition: background 140ms ease, color 140ms ease;\n}\n\n.bre-key-eye:hover {\n color: var(--dsw-alias-label-primary, #0f1115);\n background: var(--dsw-alias-interactive-bg-hover);\n}\n\n.bre-key-eye:focus-visible {\n outline: none;\n box-shadow: inset 0 0 0 2px var(--dsw-alias-border-l3);\n}\n\n/* Resolving a stored key is a same-origin round trip, so the button can be\n busy: it stays in place and dims rather than changing size or disappearing. */\n.bre-key-eye[aria-busy='true'] {\n opacity: 0.55;\n cursor: progress;\n}\n\n.bre-key-eye[hidden] { display: none; }\n\n/* One glyph at a time. The state lives on the button's own attribute, so a\n click swaps the icon without the host re-rendering anything. */\n.bre-key-eye svg[data-bre-icon] { display: none; }\n\n.bre-key-eye[aria-pressed='false'] svg[data-bre-icon='eye'],\n.bre-key-eye[aria-pressed='true'] svg[data-bre-icon='eye-off'] { display: block; }\n\n/* The key list. The plugin mounts it into its own host, a sibling placed right\n after the official key field, so the list sits under the input without\n changing the field's own box: the reveal eye is measured against that box\n (bottom: 0), and a list inside the field would drag the eye down onto the\n list's last row. The margin only covers the case where the card spaces its\n fields with margins instead of a gap. */\n.bre-keys-host {\n display: block;\n min-width: 0;\n margin-top: 4px;\n /* User item 5: room for one key row plus the add row, reserved before the list\n answers. The panel renders nothing while its read is in flight, so without\n this the card painted at its short height and then grew by a row's height\n when the keys arrived \u2014 the card visibly re-flowing just after it opened.\n The reservation is the height the list settles at (40px row + 8px gap + 34px\n add row + the list's own two 1px rules), so nothing moves once it lands. */\n min-height: 84px;\n}\n\n.bre-keys { display: flex; flex-direction: column; gap: 8px; }\n\n/* While the key list is still reading, the panel renders NOTHING (the component\n returns an empty .bre-keys). An empty ruled box \u2014 or a placeholder line that\n then swaps to the list \u2014 would paint one frame of a panel that then visibly\n changes: the \"the key section flashes when you press Edit\" report. :empty\n takes the panel out of the layout until the first answer lands, so the list\n is the first thing the key area ever paints, and nothing under it moves. */\n.bre-keys:empty { display: none; }\n\n/* One ruled container holding the keys and the add entry, the way a settings\n list reads: a single hairline box, and hairlines between rows only. */\n.bre-keys-list {\n display: flex;\n flex-direction: column;\n margin: 0;\n padding: 0;\n border: 0.5px solid var(--dsw-alias-border-l2, #d5d7dd);\n border-radius: var(--dsw-radius-md, 12px);\n list-style: none;\n overflow: hidden;\n}\n\n.bre-keys-list > li + li { border-top: 0.5px solid var(--dsw-alias-border-l2, #d5d7dd); }\n\n.bre-keys-row {\n display: flex;\n align-items: center;\n gap: 8px;\n min-width: 0;\n padding: 9px 10px;\n /* The hovered row lifts a shade, the way the redesign's list rows do \u2014 the\n container clips the corners, so the fill stays inside the ruled box. */\n transition: background 120ms ease;\n}\n\n.bre-keys-row:hover { background: var(--dsw-alias-fill-tertiary, rgba(120, 125, 140, .07)); }\n\n/* The switch at the head of every key row: a ring with a check inside it. While\n the key is switched into use the WHOLE icon is the brand blue \u2014 ring and glyph\n together; while it is benched it is a bare grey ring with nothing drawn in it.\n Off is a pause, not a deletion \u2014 the label, scope and protocol stay. With\n several keys coexisting there is no \"default\" badge: which key signs a model\n is the scope's decision. The one state that cannot be clicked is the last\n enabled key: the host would refuse the switch-off, so the control stands down\n instead (the disabled shell keeps the lit look \u2014 the key IS selected). */\n.bre-keys-toggle {\n flex: 0 0 auto;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 20px;\n height: 20px;\n padding: 0;\n border: 0;\n border-radius: 999px;\n background: transparent;\n cursor: pointer;\n -webkit-appearance: none;\n appearance: none;\n transition: opacity 140ms ease;\n}\n\n.bre-keys-toggle:hover:not(:disabled),\n.bre-keys-toggle:focus-visible { opacity: 0.8; }\n\n.bre-keys-toggle:focus-visible {\n outline: none;\n box-shadow: inset 0 0 0 2px var(--dsw-alias-border-l3);\n border-radius: 999px;\n}\n\n.bre-keys-toggle:disabled { cursor: default; }\n\n.bre-keys-toggle-mark {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 16px;\n height: 16px;\n border-radius: 999px;\n background: transparent;\n box-shadow: inset 0 0 0 1.5px var(--dsw-alias-label-tertiary, #9aa1ab);\n color: transparent;\n transition: box-shadow 140ms ease, color 140ms ease;\n}\n\n.bre-keys-toggle-mark svg {\n width: 10px;\n height: 10px;\n display: none;\n}\n\n/* The lit check is PINNED to the plugin's own blue rather than the host's brand\n token: on the settings surface --dsw-alias-brand-primary can resolve dark \u2014\n and a var() fallback only covers a token that is unset, so a token defined\n with a broken value leaves the tick inheriting the body's near-black ink. A\n checked key must read blue wherever the list is painted, so the blue is not\n negotiable with the surface. */\n.bre-keys-toggle.is-on .bre-keys-toggle-mark {\n box-shadow: inset 0 0 0 1.5px #4d6bfe;\n color: #4d6bfe;\n}\n\n.bre-keys-toggle.is-on .bre-keys-toggle-mark svg { display: block; }\n\n/* A switched-off key stays listed but reads as idle: its name and preview dim,\n while the actions keep their full strength so the row stays workable. */\n.bre-keys-row.is-off .bre-keys-alias,\n.bre-keys-row.is-off .bre-keys-mask { opacity: 0.45; }\n\n/* With an alias the alias is the row's name and the masked key follows it as a\n quiet code pill; without one the masked key is the name and takes the row's\n measure, so a key is always readable as itself. */\n.bre-keys-alias {\n flex: 0 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: 12px;\n font-weight: 500;\n color: var(--dsw-alias-label-primary, #0f1115);\n}\n\n.bre-keys-mask {\n flex: 0 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n padding: 1px 6px;\n border-radius: 4px;\n background: var(--dsw-alias-interactive-bg-hover, rgba(127, 127, 127, 0.08));\n color: var(--dsw-alias-label-secondary, #6b7280);\n font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;\n font-size: 11px;\n}\n\n.bre-keys-mask-plain {\n flex: 1 1 auto;\n padding: 0;\n background: transparent;\n color: var(--dsw-alias-label-primary, #0f1115);\n font-family: inherit;\n font-size: 12px;\n}\n\n/* The row's three actions, revealed on hover or keyboard focus rather than\n removed, so the row keeps its width and nothing shifts under the pointer.\n Revealing is opacity alone; a pointer that cannot hover simply always sees\n them, because a hidden action there would be an unreachable one. The model\n scope rides on its own button here (its label is the count), so there is no\n separate summary text beside the key any more. The tray parks at the right\n edge: no status word is painted on a row any more (\u72B6\u6001\u90FD\u79FB\u9664\u2014\u2014\u4E1C\u897F\u591A\u4E86\uFF0C\n \u522B\u540D\u88AB\u7701\u7565), so the right edge is the tray's alone. */\n.bre-keys-actions {\n display: inline-flex;\n flex: 0 0 auto;\n align-items: center;\n gap: 10px;\n margin-left: auto;\n opacity: 0;\n pointer-events: none;\n transition: opacity 120ms ease;\n}\n\n.bre-keys-row:hover .bre-keys-actions,\n.bre-keys-row:focus-within .bre-keys-actions {\n opacity: 1;\n pointer-events: auto;\n}\n\n@media (hover: none) {\n .bre-keys-actions { opacity: 1; pointer-events: auto; }\n}\n\n.bre-keys-danger { color: var(--dsw-alias-state-error-primary, #c62828); }\n\n/* The one inline form. It opens under the row it edits, or \u2014 for a new key \u2014 as\n the list's own last item, which is what keeps adding a key in place instead\n of in a dialog that has to be found and dismissed. */\n.bre-keys-form-row { padding: 10px; }\n\n.bre-keys-form { display: flex; flex-direction: column; gap: 8px; }\n\n.bre-keys-form-fields {\n display: grid;\n grid-template-columns: repeat(2, minmax(0, 1fr));\n gap: 8px;\n}\n\n/* One field means the whole row: the value form holds only the secret, and it\n must not sit in half a row beside an empty half. */\n.bre-keys-form-fields > :only-child { grid-column: 1 / -1; }\n\n/* The shared input caps itself at 240px for the panels it was written for; here\n the field is the measure. */\n.bre-keys-form-fields .bre-text-input { max-width: none; }\n\n.bre-keys-form-actions {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n gap: 8px;\n}\n\n/* The shared primary button is styled inside the headers editor, which is not\n where this form lives, so the key list carries its own compact copy. */\n.bre-keys-form-actions .bre-primary-button {\n height: 28px;\n padding: 0 12px;\n border: 0;\n border-radius: var(--dsw-radius-md, 8px);\n background: var(--dsw-alias-button-primary-fill, #0f1115);\n color: var(--dsw-alias-label-primary-foreground, #ffffff);\n font: inherit;\n font-size: 12px;\n cursor: pointer;\n -webkit-appearance: none;\n appearance: none;\n}\n\n.bre-keys-form-actions .bre-primary-button:hover {\n background: var(--dsw-alias-button-primary-hover, #43454a);\n}\n\n.bre-keys-form-actions .bre-primary-button:disabled { opacity: 0.5; cursor: default; }\n\n.bre-keys-form-actions .bre-primary-button:focus-visible {\n outline: none;\n box-shadow: 0 0 0 2px var(--dsw-alias-brand-primary, #3b82f6);\n}\n\n/* The add entry is the list's own last row \u2014 full width, the same shape as the\n keys it adds to \u2014 so the way in and the thing it makes read as one list. */\n.bre-keys-add-row { padding: 0; }\n\n.bre-keys-add {\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n padding: 9px 10px;\n box-sizing: border-box;\n border: 0;\n background: transparent;\n color: var(--dsw-alias-label-secondary, #6b7280);\n font: inherit;\n font-size: 12px;\n text-align: left;\n cursor: pointer;\n -webkit-appearance: none;\n appearance: none;\n transition: background 120ms ease, color 120ms ease;\n}\n\n.bre-keys-add:hover {\n background: var(--dsw-alias-interactive-bg-hover, rgba(127, 127, 127, 0.08));\n color: var(--dsw-alias-label-primary, #0f1115);\n}\n\n.bre-keys-add:focus-visible {\n outline: none;\n box-shadow: inset 0 0 0 2px var(--dsw-alias-brand-primary, #3b82f6);\n}\n\n.bre-keys-add:disabled { opacity: 0.55; cursor: default; }\n\n/* The scope field spans the row like the secret field does. */\n.bre-keys-scope { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }\n\n.bre-keys-hint {\n margin: 0;\n font-size: 11px;\n line-height: 1.5;\n color: var(--dsw-alias-label-secondary, #6b7280);\n}\n\n/* The discover action sits below the ruled list because it acts on every key at\n once, not on the row it would otherwise live in. */\n.bre-keys-footer { display: flex; justify-content: flex-end; }\n\n/* The offer to add the models the keys advertise but the provider does not\n declare: one sentence and one link, never a silent write. */\n.bre-keys-note {\n margin: 6px 0 0;\n font-size: 11px;\n line-height: 1.6;\n color: var(--dsw-alias-label-secondary, #6b7280);\n}\n\n.bre-keys-discover {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 0;\n border: 0;\n background: transparent;\n color: var(--dsw-alias-label-secondary, #6b7280);\n font: inherit;\n font-size: 11px;\n cursor: pointer;\n -webkit-appearance: none;\n appearance: none;\n transition: color 120ms ease;\n}\n\n.bre-keys-discover:hover { color: var(--dsw-alias-label-primary, #0f1115); }\n\n.bre-keys-discover:focus-visible {\n outline: none;\n box-shadow: 0 0 0 2px var(--dsw-alias-brand-primary, #3b82f6);\n border-radius: 4px;\n}\n\n.bre-keys-discover:disabled { opacity: 0.55; cursor: default; }\n\n.bre-keys-discover-mark {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 14px;\n height: 14px;\n}\n\n.bre-keys-discover-mark > svg { width: 13px; height: 13px; }\n\n.bre-keys-add-mark {\n display: inline-flex;\n flex: 0 0 auto;\n align-items: center;\n justify-content: center;\n width: 16px;\n height: 16px;\n}\n\n.bre-keys .bre-effort-message { font-size: 11px; }\n\n/* The per-key protocol picker. It lives inside .bre-keys-actions, so it must\n look like the plain buttons beside it \u2014 same size, same grey, no box of its\n own \u2014 or the hover tray reads as two different kinds of control. \"Default\n protocol\" (the empty value) follows the route's own API protocol.\n What you read is a LABEL, not a control: a native <select> is as wide as its\n widest OPTION, so a short value left the chevron floating a hundred pixels to\n its right (user item 2). The button is exactly as wide as the text and opens\n this module's own menu, which can explain each protocol (\u53C2\u8003\u56FE\u6837\u5F0F). */\n.bre-keys-protocol-wrap {\n position: relative;\n display: inline-flex;\n align-items: center;\n color: var(--dsw-alias-label-secondary, #61666b);\n}\n\n.bre-keys-protocol {\n display: inline-flex;\n align-items: center;\n gap: 2px;\n margin: 0;\n padding: 2px 6px;\n border: none;\n border-radius: 4px;\n background: none;\n color: inherit;\n font: inherit;\n font-size: 12px;\n line-height: 1;\n cursor: pointer;\n}\n\n.bre-keys-protocol-label {\n color: inherit;\n font: inherit;\n font-size: 12px;\n line-height: 1;\n}\n\n.bre-keys-protocol-caret {\n color: inherit;\n font-size: 12px;\n line-height: 1;\n pointer-events: none;\n}\n\n/* Hover is a shade, not an underline: the picker reads as a control (every\n other quiet control in the row lifts on hover), and an underline made it\n read as a link to somewhere else. */\n.bre-keys-protocol:hover { background: var(--dsw-alias-interactive-bg-hover, rgba(127, 127, 127, 0.08)); }\n\n/* An open menu is a pressed control: while its list is up, the trigger keeps the\n tray's colour instead of going back to quiet grey. */\n.bre-keys-protocol[aria-expanded='true'] { color: var(--dsw-alias-label-primary, #0f1115); }\n\n.bre-keys-protocol:focus-visible {\n outline: none;\n box-shadow: 0 0 0 2px var(--dsw-alias-brand-primary, #3b82f6);\n}\n\n.bre-keys-protocol:disabled { opacity: 0.5; cursor: default; }\n\n/* ---- The protocol menu ----\n One entry per protocol, its name over the line that says what that wire is\n for: the names alone do not tell Chat Completions and Responses apart, and the\n choice is about the models behind the key (user request, \u53C2\u8003\u56FE\u6837\u5F0F). Portalled\n onto <body> because the key list clips its overflow; the panel wears the same\n surface, radius and hairline as the app's own menus. */\n.bre-protocol-menu {\n position: fixed;\n z-index: 2147483000;\n box-sizing: border-box;\n width: 292px;\n padding: 6px;\n border-radius: 12px;\n border: 0.5px solid var(--dsw-alias-border-l4, rgba(0, 0, 0, .1));\n background: var(--dsw-alias-bg-layer-1, #ffffff);\n box-shadow: 0 8px 28px rgba(0, 0, 0, .16), 0 2px 6px rgba(0, 0, 0, .08);\n animation: bre-protocol-menu-in 120ms ease-out;\n}\n\n@keyframes bre-protocol-menu-in {\n from { opacity: 0; transform: translateY(-2px); }\n to { opacity: 1; transform: translateY(0); }\n}\n\n.bre-protocol-menu-title {\n margin: 0;\n padding: 6px 10px 4px;\n color: var(--dsw-alias-label-secondary, #61666b);\n font-size: 12px;\n line-height: 18px;\n}\n\n.bre-protocol-menu-list {\n display: flex;\n flex-direction: column;\n gap: 2px;\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n.bre-protocol-option {\n display: flex;\n align-items: flex-start;\n gap: 6px;\n width: 100%;\n box-sizing: border-box;\n margin: 0;\n padding: 8px 10px;\n border: none;\n border-radius: 8px;\n background: none;\n color: var(--dsw-alias-label-primary, #0f1115);\n font: inherit;\n text-align: left;\n cursor: pointer;\n}\n\n.bre-protocol-option:hover { background: var(--dsw-alias-fill-tertiary, rgba(120, 125, 140, .09)); }\n\n.bre-protocol-option:focus-visible {\n outline: none;\n box-shadow: 0 0 0 2px var(--dsw-alias-brand-primary, #3b82f6);\n}\n\n/* The choice in force is named the way the redesign names every selection:\n the accent lives in the TITLE and the tick, and the row keeps the menu's\n own surface \u2014 the grey pillow made the answer look pressed rather than\n current. The tick rides the right edge (order + auto margin \u2014 the DOM\n keeps the mark before the text), so the text column starts flush. */\n.bre-protocol-option-mark {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex: 0 0 auto;\n order: 2;\n width: 12px;\n height: 18px;\n margin-left: auto;\n margin-top: 2px;\n color: var(--dsw-alias-brand-primary, #4d6bfe);\n}\n\n.bre-protocol-option[aria-selected='true'] { background: transparent; }\n\n.bre-protocol-option[aria-selected='true']:hover {\n background: var(--dsw-alias-fill-tertiary, rgba(120, 125, 140, .09));\n}\n\n.bre-protocol-option-text {\n display: flex;\n flex-direction: column;\n gap: 2px;\n min-width: 0;\n}\n\n/* One line each, always: a wrapped hint made one row taller than its neighbours\n and the column of ticks lost its rhythm. A hint too long for the panel is cut\n with an ellipsis rather than allowed to reflow the list. */\n.bre-protocol-option-title,\n.bre-protocol-option-hint {\n display: block;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.bre-protocol-option-title {\n font-size: 13px;\n font-weight: 500;\n line-height: 18px;\n}\n\n.bre-protocol-option[aria-selected='true'] .bre-protocol-option-title {\n color: var(--dsw-alias-brand-primary, #4d6bfe);\n font-weight: 500;\n}\n\n.bre-protocol-option-hint {\n color: var(--dsw-alias-label-secondary, #61666b);\n font-size: 12px;\n line-height: 16px;\n}\n\n@media (prefers-reduced-motion: reduce) {\n .bre-protocol-menu { animation: none; }\n}\n\n/* The key list's own links read as plain grey text: a row can carry four of them\n and blue made them compete with the value they act on (user item 3). Danger\n keeps its hue, and the scope form's primary shortcuts stay untouched. */\n.bre-keys-actions .bre-link-button { color: var(--dsw-alias-label-secondary, #61666b); }\n.bre-keys-actions .bre-link-button:hover { color: var(--dsw-alias-label-primary, #0f1115); }\n.bre-keys-actions .bre-keys-danger { color: var(--dsw-alias-state-error-primary, #d33); }\n\n/* The API protocol as ONE segmented bar: one segment per protocol, the one in\n force sitting in a white pill on a shared grey track, so the alternatives read\n as parts of a single choice instead of three loose buttons (user item 1). The\n host's own <select> stays in the DOM behind them \u2014 hidden by the module, not\n removed \u2014 because it is what the host saves and what this module reads the\n family from. */\n.bre-protocol-cards {\n display: inline-flex;\n flex-wrap: wrap;\n gap: 2px;\n padding: 2px;\n border-radius: 10px;\n background: var(--dsw-alias-fill-tertiary, rgba(120, 125, 140, .09));\n}\n\n.bre-protocol-card {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex: 1 1 0;\n min-width: max-content;\n height: 28px;\n padding: 0 12px;\n border: none;\n border-radius: 8px;\n background: transparent;\n color: var(--dsw-alias-label-secondary, #61666b);\n font: inherit;\n font-size: 12px;\n font-weight: 500;\n line-height: 1;\n white-space: nowrap;\n text-align: center;\n cursor: pointer;\n transition: background 140ms ease, color 140ms ease, box-shadow 140ms ease;\n}\n\n.bre-protocol-card:hover { color: var(--dsw-alias-label-primary, #0f1115); }\n\n.bre-protocol-card.is-selected {\n background: var(--dsw-alias-bg-layer-1, #fff);\n color: var(--dsw-alias-label-primary, #0f1115);\n box-shadow: 0 1px 2px #0000001a, 0 0 0 1px var(--dsw-alias-border-l2, #0000001a);\n}\n\n.bre-protocol-card:focus-visible {\n outline: none;\n box-shadow: 0 0 0 2px var(--dsw-alias-brand-primary, #3b82f6);\n}\n\n/* The provider card's address tag: the protocol family the base URL serves.\n A hairline pill, the redesign's quiet badge: centred text inside a 999\n capsule, never a control. The width is FIXED at the form's label column:\n OpenAI, Anthropic and Gemini chips then share one 96px prefix column, so\n the field's input and every \u66F4\u591A\u7AEF\u70B9 row's input start at the same x \u2014\n a min-width column would drift with each family's name length. */\n.bre-endpoint-family {\n flex: 0 0 auto;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n width: 96px;\n height: 22px;\n border-radius: 999px;\n box-shadow: inset 0 0 0 1px var(--dsw-alias-border-l3, #0000001f);\n font-size: 11px;\n color: var(--dsw-alias-label-secondary, #6b7280);\n white-space: nowrap;\n}\n\n/* The tag sits BESIDE the address input, not stacked above it. The official\n field is a column flex box (title, then control), so a tag inserted before the\n control would get a line of its own; a marked field becomes a two-column grid\n instead \u2014 the title keeps the full width, the tag takes the first column and\n the input the second. The first column is the SAME 96px the rest of the form\n labels take, so every input on the card starts at one vertical line. */\n[data-bre-endpoint-field] {\n display: grid;\n grid-template-columns: 96px minmax(0, 1fr);\n align-items: center;\n column-gap: 8px;\n /* One rhythm for the whole address block: the field's own lines AND the\n \u66F4\u591A\u7AEF\u70B9 rows inside it sit a fixed 8px apart, so the three address\n inputs read as one evenly spaced stack (API \u5730\u5740\u4E09\u4E2A\u8F93\u5165\u6846\u95F4\u8DDD\u4E0D\u4E00\u6837). */\n row-gap: 8px;\n}\n\n[data-bre-endpoint-field] > [data-bre-endpoint-title] { grid-column: 1 / -1; }\n\n[data-bre-endpoint-field] > .bre-endpoint-family { grid-column: 1; }\n\n[data-bre-endpoint-field] > input {\n grid-column: 2;\n width: 100%;\n}\n\n/* The injected second address rows. They are GRID ITEMS of the address field\n (the container is transparent to layout), so each row spans both columns and\n inherits the field's own row-gap \u2014 the uniform spacing the three address\n lines share. Collapsed until \u66F4\u591A\u7AEF\u70B9 is pressed. The [hidden] rule is not\n redundant: the display rule below beats the user agent's [hidden] rule, so\n without this companion the rows would be on screen from the moment they are\n injected. */\n[data-bre-endpoint-rows] { display: contents; }\n\n[data-bre-endpoint-rows][hidden] { display: none; }\n\n.bre-endpoint-row {\n grid-column: 1 / -1;\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.bre-endpoint-row[hidden] { display: none; }\n\n/* The injected second row's own input. The shared input caps itself at 240px for\n the narrow panels it was written for; beside a full-width address box that cap\n showed up as a short field under a long one (user item 5), so the row's input\n takes the column the main input takes. */\n.bre-endpoint-url {\n flex: 1 1 auto;\n min-width: 0;\n max-width: none;\n}\n\n/* \u66F4\u591A\u7AEF\u70B9: a small grey link riding the API \u5730\u5740 label line itself, right after\n the label text (user item 4). The official label is an inline-flex box, so the\n link simply joins its children and the host's own 10px gap spaces it from the\n words; the row it reveals still opens directly under the field group. */\n.bre-endpoint-toggle {\n display: inline-flex;\n align-items: center;\n margin: 0 0 0 6px;\n padding: 0;\n border: none;\n background: none;\n color: var(--dsw-alias-label-secondary, #6b7280);\n font: inherit;\n font-size: 12px;\n font-weight: 400;\n line-height: 1;\n cursor: pointer;\n}\n\n.bre-endpoint-toggle:hover { color: var(--dsw-alias-label-primary, #0f1115); text-decoration: none; }\n\n/* The disclosure mark is DRAWN, not typed: two 1.5px strokes make the thin\n chevron of the reference, and it turns over when the row opens instead of\n being swapped for a second glyph (user item 2). */\n.bre-endpoint-toggle::after {\n content: '';\n width: 5px;\n height: 5px;\n margin-left: 4px;\n margin-top: -2px;\n border-right: 1.5px solid currentColor;\n border-bottom: 1.5px solid currentColor;\n transform: rotate(45deg);\n transition: transform 140ms ease, margin-top 140ms ease;\n}\n\n.bre-endpoint-toggle[aria-expanded='true']::after {\n margin-top: 2px;\n transform: rotate(225deg);\n}\n\n.bre-endpoint-toggle:focus-visible {\n outline: none;\n box-shadow: 0 0 0 2px var(--dsw-alias-brand-primary, #3b82f6);\n border-radius: 4px;\n}\n\n/* The model-scope chips: the models the provider actually offers, each a toggle.\n A selected chip takes the brand tint and a tick, so a quick glance tells which\n models this key claims without reading a list of ids. */\n.bre-keys-chips {\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n}\n\n.bre-keys-chip {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n padding: 4px 10px;\n border: 1px solid var(--dsw-alias-line-regular, #d8dbe2);\n border-radius: 999px;\n background: transparent;\n color: var(--dsw-alias-label-primary, #0f1115);\n font: inherit;\n font-size: 12px;\n cursor: pointer;\n transition: background 120ms ease, border-color 120ms ease, color 120ms ease;\n}\n\n.bre-keys-chip:hover { border-color: var(--dsw-alias-brand-primary, #3b82f6); }\n\n.bre-keys-chip:focus-visible {\n outline: none;\n box-shadow: 0 0 0 2px var(--dsw-alias-brand-primary, #3b82f6);\n}\n\n.bre-keys-chip:disabled { opacity: 0.55; cursor: default; }\n\n/* A selected chip takes the accent tint and a tick; the outline steps aside \u2014\n the tint IS the border, and a second one doubled the weight. */\n.bre-keys-chip.is-selected {\n border-color: transparent;\n background: var(--dsw-alias-brand-primary-muted, #eef2ff);\n color: var(--dsw-alias-brand-primary, #3b82f6);\n}\n\n.bre-keys-chip-mark {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 12px;\n height: 12px;\n}\n\n.bre-keys-chip-mark > svg { width: 12px; height: 12px; }\n\n/* \"All models\" is a quiet text action inside the scope form's action row. */\n.bre-keys-allmodels { margin-right: auto; }\n\n/* The provider's two base URLs: one OpenAI-style, one Anthropic. Kept together\n below the key list because they belong to the route, not to any one key. */\n.bre-keys-endpoints {\n display: flex;\n flex-direction: column;\n gap: 6px;\n margin-top: 8px;\n padding-top: 8px;\n border-top: 1px solid var(--dsw-alias-line-faint, #eceef2);\n}\n\n.bre-keys-endpoint-row {\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.bre-keys-endpoint-label {\n flex: 0 0 auto;\n width: 104px;\n font-size: 11px;\n color: var(--dsw-alias-label-secondary, #6b7280);\n}\n\n.bre-keys-endpoint {\n flex: 1 1 auto;\n min-width: 0;\n height: 26px;\n font-size: 12px;\n}\n\n.bre-keys-endpoint-actions { display: flex; justify-content: flex-end; }\n\n/* ============================================================================\n Quiet Precision \u2014 the settings surfaces, stated once.\n\n The blocks below re-describe the key list, the protocol picker, the address\n rows and the provider card's protocol strip in the redesign's language. They\n are APPENDED rather than woven into the rules above on purpose: those rules\n still say what each control IS (a toggle, a menu, a row), and this block only\n says how it should look, so the two can be diffed when the plugin is next\n touched. Later rules win, so nothing above needs deleting.\n\n Three habits it enforces:\n 1. Grouping is spacing and a heading's job. A box inside a box inside a box\n is what the old panels read as, so the key list loses its outer rule and\n keeps only the hairline between rows.\n 2. One accent, and it only ever means \"this one\". Chosen states are a tint\n plus accent ink \u2014 never a solid fill, never a tick.\n 3. Nothing moves when a state changes: no control grows a glyph on select,\n because a list that widens under the pointer is a list that misclicks.\n ========================================================================= */\n\n/* The provider card's protocol strip: four wires, each with a share of the row's\n whole width, so the chosen one reads as a segment of the field rather than a\n chip floating in it. */\n.bre-protocol-cards {\n display: flex;\n width: 100%;\n box-sizing: border-box;\n gap: 2px;\n padding: 2px;\n border-radius: var(--bre-r-sm);\n background: var(--bre-sunken);\n}\n\n.bre-protocol-card {\n flex: 1 1 0;\n height: 28px;\n min-width: 0;\n padding: 0 6px;\n border-radius: 6px;\n color: var(--bre-ink-2);\n font-size: 12px;\n font-weight: 400;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.bre-protocol-card:hover {\n color: var(--bre-ink);\n background: var(--bre-hover);\n}\n\n.bre-protocol-card.is-selected {\n background: var(--bre-accent-weak);\n color: var(--bre-accent-ink);\n font-weight: 500;\n box-shadow: inset 0 0 0 1px var(--bre-accent-line);\n}\n\n.bre-protocol-card:focus-visible {\n outline: none;\n box-shadow: 0 0 0 3px var(--bre-accent-glow);\n}\n\n/* The address field: the endpoint's name and its input on ONE line, the name\n column measured against the longest name it can hold (Anthropic) rather than\n padded out \u2014 a wider column only buys empty space between the two. */\n[data-bre-endpoint-field] {\n grid-template-columns: 76px minmax(0, 1fr);\n column-gap: 6px;\n row-gap: 6px;\n}\n\n.bre-endpoint-family {\n width: 76px;\n height: 24px;\n justify-content: flex-start;\n gap: 6px;\n padding: 0;\n border-radius: 0;\n box-shadow: none;\n background: transparent;\n color: var(--bre-ink-3);\n font-size: 11.5px;\n font-weight: 400;\n}\n\n/* The dot names the endpoint's state without a second word: filled once that\n family has an address, hollow while it is still unset. */\n.bre-endpoint-family::before {\n content: '';\n flex: 0 0 auto;\n width: 5px;\n height: 5px;\n border-radius: 999px;\n background: var(--bre-line-4);\n}\n\n.bre-endpoint-family[data-bre-endpoint-filled='1']::before { background: var(--bre-ok); }\n\n.bre-endpoint-row {\n display: grid;\n grid-template-columns: 76px minmax(0, 1fr);\n column-gap: 6px;\n align-items: center;\n}\n\n.bre-endpoint-url {\n height: 30px;\n border-radius: var(--bre-r-sm);\n}\n\n/* \u66F4\u591A\u7AEF\u70B9 and the tally that rides beside it: two quiet words on the field's\n label line, never a control that looks like another field. */\n.bre-endpoint-toggle {\n height: 18px;\n margin: 0 0 0 4px;\n padding: 0 4px;\n border-radius: 5px;\n color: var(--bre-accent);\n font-size: 11.5px;\n}\n\n.bre-endpoint-toggle:hover {\n color: var(--bre-accent-ink);\n background: var(--bre-accent-weak);\n}\n\n/* The key list: rows kept apart by a hairline round the block and between the\n rows. User item 2: with the block's rule removed and the divider at line-1\n (a 4% black, invisible on white), a resting list read as loose text floating\n in the card \u2014 the row only existed while the pointer was on it. The box is\n back, in the same hairline the other groups use, so the extent of a row is\n legible before it is hovered. */\n.bre-keys-list {\n border: 1px solid var(--bre-line-2);\n border-radius: var(--bre-r-sm);\n overflow: hidden;\n}\n\n.bre-keys-list > li + li { border-top: 1px solid var(--bre-line-2); }\n\n.bre-keys-row {\n gap: 8px;\n min-height: 40px;\n padding: 0 10px;\n border-radius: 0;\n transition: background var(--bre-t) var(--bre-ease);\n}\n\n.bre-keys-row:hover { background: var(--bre-hover); }\n\n/* The enable check: a ring that fills. Filled is accent with a white tick, empty\n is a grey ring with nothing in it \u2014 the two readings of a checkbox, drawn at\n the list's own scale. (The tick is the STATE of one control, which is why it\n survives the no-glyph-on-select rule above: it lives inside the switch, so\n lighting it cannot change the row's width.) */\n.bre-keys-toggle-mark {\n width: 18px;\n height: 18px;\n box-shadow: inset 0 0 0 1.5px var(--bre-line-4);\n transition: background var(--bre-t) var(--bre-ease), box-shadow var(--bre-t) var(--bre-ease);\n}\n\n.bre-keys-toggle-mark svg {\n width: 11px;\n height: 11px;\n}\n\n.bre-keys-toggle.is-on .bre-keys-toggle-mark {\n background: var(--bre-accent);\n box-shadow: inset 0 0 0 1.5px var(--bre-accent);\n color: #ffffff;\n}\n\n.bre-keys-toggle:focus-visible {\n box-shadow: none;\n}\n\n.bre-keys-toggle:focus-visible .bre-keys-toggle-mark {\n box-shadow: inset 0 0 0 1.5px var(--bre-line-4), 0 0 0 3px var(--bre-accent-glow);\n}\n\n/* The last enabled key cannot be switched off; it stays lit but stands back, so\n the refusal is visible before the click rather than after it. */\n.bre-keys-toggle:disabled .bre-keys-toggle-mark { opacity: 0.45; }\n\n/* A switched-off key stays listed but reads as idle through its ink alone: the\n row is still workable, so nothing about it is made fainter than text. */\n.bre-keys-row.is-off .bre-keys-alias,\n.bre-keys-row.is-off .bre-keys-mask {\n opacity: 1;\n color: var(--bre-ink-4);\n}\n\n.bre-keys-alias {\n font-size: 12px;\n font-weight: 500;\n color: var(--bre-ink);\n}\n\n.bre-keys-mask {\n padding: 1px 6px;\n border-radius: var(--bre-r-xs);\n background: var(--bre-sunken);\n color: var(--bre-ink-3);\n font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;\n font-size: 11px;\n}\n\n.bre-keys-mask-plain {\n padding: 0;\n border-radius: 0;\n background: transparent;\n color: var(--bre-ink);\n font-family: inherit;\n font-size: 12px;\n}\n\n/* The row's tray: the protocol and the model scope are STATE and stay on the\n row; the verbs appear on hover. The split is made here rather than in the\n markup \u2014 the tray stays mounted and only the VERBS inside it are taken out of\n the line, picked out by :not(.bre-keys-scope): the scope is a <button> too,\n but its label is a count, not an action.\n User item 2: they used to be kept in the line and painted away with opacity,\n to stop the row shifting under the pointer. On a row with no alias that left\n the two things that ARE always visible \u2014 the protocol pill and the scope\n count \u2014 held apart by the width of three invisible buttons, so a resting list\n read as scattered words. A verb that is not showing now takes no room: the\n state stays together at the row's right edge, and the three actions open in\n place on hover. The row keeps its own width either way (it is the list's\n column), so nothing outside the row moves. */\n.bre-keys-actions {\n gap: 6px;\n opacity: 1;\n pointer-events: auto;\n}\n\n.bre-keys-actions .bre-link-button:not(.bre-keys-scope) {\n display: none;\n}\n\n.bre-keys-row:hover .bre-keys-actions .bre-link-button:not(.bre-keys-scope),\n.bre-keys-row:focus-within .bre-keys-actions .bre-link-button:not(.bre-keys-scope) {\n display: inline-flex;\n}\n\n/* A row waiting on \"confirm remove / cancel\" must never hide its own question. */\n.bre-keys-actions.is-confirming .bre-link-button {\n display: inline-flex;\n opacity: 1;\n pointer-events: auto;\n}\n\n@media (hover: none) {\n .bre-keys-actions .bre-link-button:not(.bre-keys-scope) {\n display: inline-flex;\n opacity: 1;\n pointer-events: auto;\n }\n}\n\n.bre-keys-protocol {\n height: 20px;\n padding: 0 5px;\n gap: 3px;\n border-radius: 5px;\n background: var(--bre-sunken);\n color: var(--bre-ink-2);\n font-size: 11px;\n line-height: 1;\n}\n\n.bre-keys-protocol:hover {\n background: var(--bre-sunken-2);\n color: var(--bre-ink);\n}\n\n.bre-keys-protocol[aria-expanded='true'] {\n background: var(--bre-accent-weak);\n color: var(--bre-accent-ink);\n}\n\n.bre-keys-protocol-caret { font-size: 11px; opacity: 0.6; }\n\n.bre-keys-scope {\n color: var(--bre-ink-3);\n font-family: inherit;\n font-size: 11px;\n font-variant-numeric: tabular-nums;\n letter-spacing: 0;\n}\n\n/* Verbs are quieter than state: ink-3 at rest, ink on hover, danger for the one\n that removes a key. */\n.bre-keys-actions .bre-link-button {\n color: var(--bre-ink-3);\n font-size: 11.5px;\n}\n\n.bre-keys-actions .bre-link-button:hover { color: var(--bre-ink); }\n\n.bre-keys-actions .bre-keys-danger { color: var(--bre-danger); }\n\n.bre-keys-actions .bre-keys-danger:hover { color: var(--bre-danger); }\n\n/* The inline form: a sunken panel inside the list, never a dialog. */\n.bre-keys-form-row { padding: 0 0 8px; }\n\n.bre-keys-form {\n gap: 8px;\n padding: 10px;\n border: none;\n border-radius: var(--bre-r-sm);\n background: var(--bre-sunken);\n}\n\n.bre-keys-form-fields { gap: 6px; }\n\n.bre-keys-hint,\n.bre-keys-note {\n margin: 0;\n color: var(--bre-ink-hint);\n font-size: 11px;\n line-height: 16px;\n}\n\n.bre-keys-form-actions { gap: 6px; }\n\n.bre-keys-form-actions .bre-primary-button {\n height: 26px;\n border-radius: 6px;\n font-size: 12px;\n}\n\n/* The chips \u2014 the models a key serves, and the wire a new key pins: one shape\n for every choice set in the settings. Selected is a tint, never a tick (see\n the no-movement rule at the top of this block). */\n.bre-keys-chips { gap: 6px; }\n\n.bre-keys-chip {\n height: 26px;\n padding: 0 10px;\n border: 1px solid var(--bre-line-3);\n border-radius: 999px;\n background: transparent;\n color: var(--bre-ink-2);\n font-size: 11.5px;\n}\n\n.bre-keys-chip:hover {\n border-color: var(--bre-line-4);\n color: var(--bre-ink);\n}\n\n.bre-keys-chip.is-selected {\n background: var(--bre-accent-weak);\n border-color: var(--bre-accent-line);\n color: var(--bre-accent-ink);\n font-weight: 500;\n}\n\n.bre-keys-chip:focus-visible {\n outline: none;\n box-shadow: 0 0 0 3px var(--bre-accent-glow);\n}\n\n/* Adding a key is the list's last line: a dashed invitation, not a button that\n competes with the row actions. */\n.bre-keys-add {\n height: 34px;\n border: 1px dashed var(--bre-line-3);\n border-radius: var(--bre-r-sm);\n color: var(--bre-ink-3);\n font-size: 12px;\n}\n\n.bre-keys-add:hover {\n border-color: var(--bre-line-4);\n background: var(--bre-sunken);\n color: var(--bre-ink);\n}\n\n/* The protocol menu: roomy rows, each naming a wire and saying what it signs.\n The one in force wears the accent tint; no tick, so the rows keep one width\n and the list cannot shuffle under the pointer. */\n.bre-protocol-menu {\n padding: 6px;\n border: 1px solid var(--bre-line-1);\n border-radius: var(--bre-r-md);\n background: var(--bre-surface);\n box-shadow: var(--bre-shadow-pop);\n}\n\n.bre-protocol-menu-title {\n padding: 4px 8px 6px;\n color: var(--bre-ink-hint);\n font-size: 11.5px;\n font-weight: 500;\n letter-spacing: 0.02em;\n}\n\n.bre-protocol-option {\n gap: 8px;\n min-height: 52px;\n padding: 8px 10px;\n border-radius: var(--bre-r-sm);\n}\n\n.bre-protocol-option:hover { background: var(--bre-hover); }\n\n.bre-protocol-option[aria-selected='true'],\n.bre-protocol-option[aria-selected='true']:hover {\n background: var(--bre-accent-weak);\n}\n\n.bre-protocol-option-title {\n color: var(--bre-ink);\n font-size: 13px;\n font-weight: 500;\n line-height: 18px;\n}\n\n.bre-protocol-option[aria-selected='true'] .bre-protocol-option-title {\n color: var(--bre-accent-ink);\n}\n\n.bre-protocol-option-hint {\n color: var(--bre-ink-hint);\n font-size: 11.5px;\n line-height: 16px;\n}\n\n.bre-protocol-option[aria-selected='true'] .bre-protocol-option-hint {\n color: var(--bre-accent-ink);\n opacity: 0.78;\n}\n\n.bre-protocol-option:focus-visible {\n outline: none;\n box-shadow: 0 0 0 3px var(--bre-accent-glow);\n}\n\n@media (prefers-reduced-motion: reduce) {\n .bre-editor-tab { transition: none; }\n .bre-key-eye { transition: none; }\n .bre-keys-actions, .bre-keys-add, .bre-keys-discover, .bre-keys-chip { transition: none; }\n}\n\n/* ---- \u6307\u7EB9\u68C0\u6D4B\u9875\u7B7E / the fingerprint tab pane ----------------------------\n\n A SEPARATE pane, never a field in the model row: the model grid keeps its\n five columns and its own meaning (one row = one configuration), while this\n page is one row per model of one provider's health check. Everything here\n is ours \u2014 the pane's root carries data-bre-fingerprint, which is the bit\n the tab pass reads to decide the tab exists at all. No overlays, no toasts,\n no progress bar: progress is the row badge and nothing else (m00702). */\n\n.bre-fingerprint {\n display: flex;\n flex-direction: column;\n gap: 10px;\n padding: 4px 0 2px;\n min-width: 0;\n}\n\n.bre-fp-head {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: 8px;\n}\n.bre-fp-head .grow,\n.bre-fp-family .grow,\n.bre-fp-row-head .grow { flex: 1 1 auto; min-width: 0; }\n\n.bre-fp-title {\n font-size: 13px;\n font-weight: 500;\n color: var(--bre-ink);\n}\n.bre-fp-count,\n.bre-fp-evidence,\n.bre-fp-k {\n font-size: 11px;\n color: var(--bre-ink-3);\n}\n/* The status line is a STATUS, not a progress bar \u2014 it reports how the last\n run came out and, while a batch is going, where it is. \u65E2\u7136\u662F\u72B6\u6001\u884C\uFF0C\u5C31\n \u4E0D\u8BE5\u6BD4\u5FBD\u7AE0\u66F4\u54CD\u3002 */\n.bre-fp-summary {\n font-size: 12px;\n color: var(--bre-ink-2);\n}\n.bre-fp-intro {\n margin: 0;\n font-size: 11px;\n line-height: 16px;\n color: var(--bre-ink-3);\n}\n.bre-fp-error {\n margin: 0;\n font-size: 11px;\n color: var(--bre-danger);\n}\n\n/* One button for the whole provider. Quiet by default and quiet while it\n runs \u2014 it only greys out. \u4E00\u4E2A\u5F3A\u8C03\u8272\u53EA\u8868\u8FBE\u72B6\u6001\uFF0C\u800C\"\u6B63\u5728\u8DD1\"\u5DF2\u7ECF\u5728\u5FBD\u7AE0\u548C\n \u72B6\u6001\u884C\u4E0A\u8BF4\u4E86\u4E24\u904D\u3002 */\n.bre-fp-all,\n.bre-fp-action {\n appearance: none;\n height: 26px;\n padding: 0 11px;\n border: 1px solid var(--bre-line-3);\n border-radius: var(--bre-r-sm);\n background: var(--bre-surface);\n color: var(--bre-ink-2);\n font: inherit;\n font-size: 11.5px;\n line-height: 1;\n white-space: nowrap;\n cursor: pointer;\n transition: all var(--bre-t) var(--bre-ease);\n}\n.bre-fp-all:hover:not(:disabled),\n.bre-fp-action:hover:not(:disabled) {\n border-color: var(--bre-line-4);\n color: var(--bre-ink);\n}\n.bre-fp-all:focus-visible,\n.bre-fp-action:focus-visible {\n outline: none;\n border-color: var(--bre-accent);\n box-shadow: 0 0 0 3px var(--bre-accent-glow);\n}\n.bre-fp-all:disabled,\n.bre-fp-action:disabled { opacity: 0.55; cursor: default; }\n\n.bre-fp-rows {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n.bre-fp-row {\n border: 1px solid var(--bre-line-2);\n border-radius: var(--bre-r-md);\n background: var(--bre-surface);\n overflow: hidden;\n}\n.bre-fp-row-head {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: 10px;\n min-height: 44px;\n padding: 6px 12px;\n}\n.bre-fp-model {\n font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;\n font-size: 12px;\n color: var(--bre-ink);\n overflow-wrap: anywhere;\n}\n\n/* The badge is the ONLY place a verdict is painted. 19px, a 5px corner and a\n hairline stroke, so a column of them reads as one instrument. State is the\n colour; the words say which state. */\n.bre-fp-badge {\n display: inline-flex;\n align-items: center;\n height: 19px;\n padding: 0 6px;\n border: 1px solid var(--bre-line-3);\n border-radius: 5px;\n background: var(--bre-surface);\n color: var(--bre-ink-3);\n font-size: 11px;\n line-height: 1;\n white-space: nowrap;\n}\n.bre-fp-badge.is-idle { color: var(--bre-ink-3); }\n.bre-fp-badge.is-queued { color: var(--bre-ink-3); border-style: dashed; }\n.bre-fp-badge.is-running {\n border-color: var(--bre-accent-line);\n background: var(--bre-accent-weak);\n color: var(--bre-accent-ink);\n}\n.bre-fp-badge.is-identified {\n border-color: var(--bre-accent-line);\n background: var(--bre-accent-weak);\n color: var(--bre-accent-ink);\n}\n.bre-fp-badge.is-doubtful { color: var(--bre-warn); border-color: var(--bre-warn); }\n.bre-fp-badge.is-failed { color: var(--bre-danger); background: var(--bre-danger-weak); }\n\n/* The result card: where the numbers came from, what they say, and what they\n cannot say. Sunken, so it reads as evidence under the row rather than as\n another row. */\n.bre-fp-body {\n padding: 10px 12px 12px;\n background: var(--bre-sunken);\n border-top: 1px solid var(--bre-line-1);\n}\n.bre-fp-family {\n display: flex;\n align-items: baseline;\n flex-wrap: wrap;\n gap: 8px;\n}\n.bre-fp-v {\n font-size: 12px;\n font-weight: 500;\n color: var(--bre-ink);\n}\n.bre-fp-bars {\n display: flex;\n flex-direction: column;\n gap: 6px;\n margin-top: 6px;\n}\n.bre-fp-bar {\n display: flex;\n align-items: center;\n gap: 8px;\n}\n.bre-fp-bar-name {\n width: 132px;\n flex: 0 0 auto;\n font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;\n font-size: 11px;\n color: var(--bre-ink-2);\n overflow-wrap: anywhere;\n}\n/* The bar is a measurement, so it gets no colour of its own \u2014 only the top\n candidate is tinted. \u4E00\u4E2A\u5F3A\u8C03\u8272\u53EA\u8868\u8FBE\u72B6\u6001\uFF0C\u800C\"\u7B2C\u4E00\u540D\"\u5C31\u662F\u8FD9\u91CC\u7684\u7ED3\u8BBA\u3002 */\n.bre-fp-bar-fill {\n height: 6px;\n min-width: 2px;\n flex: 0 1 auto;\n border-radius: var(--bre-r-pill);\n background: var(--bre-line-3);\n}\n.bre-fp-bar-fill.is-top { background: var(--bre-accent); }\n.bre-fp-bar-value {\n font-size: 11px;\n color: var(--bre-ink-3);\n font-variant-numeric: tabular-nums;\n}\n.bre-fp-note {\n margin: 10px 0 0;\n font-size: 11px;\n line-height: 16px;\n color: var(--bre-ink-3);\n}\n\n@media (prefers-reduced-motion: reduce) {\n .bre-fp-all, .bre-fp-action { transition: none; }\n}\n";
@@ -116,6 +116,15 @@ export interface SettingsJoin {
116
116
  namespace: SettingsNamespaceView | undefined;
117
117
  /** Whether the settings document accepts writes. */
118
118
  writable: boolean;
119
+ /**
120
+ * Where the join came from, when the reader produced it. A mirrored read is
121
+ * free but can lag a write the mirror has not folded in yet; a wire read is
122
+ * authoritative. A caller about to fence a write on this revision must know
123
+ * which one it is holding -- and it must not go to the wire just to find out,
124
+ * because the host's `describe()` emits `settings/document-updated`.
125
+ * Undefined for a join a mock built by hand, which is never stale.
126
+ */
127
+ source?: 'scope' | 'wire';
119
128
  }
120
129
  /**
121
130
  * The client shell's context face, declared locally instead of imported: the
@@ -207,9 +216,9 @@ export type SuggestReply = {
207
216
  input?: InputModalities;
208
217
  /** Where the modality part came from -- its confidence rides this. */
209
218
  inputSource?: InputSource;
210
- /** Reference context window (display-only; never auto-filled). */
219
+ /** Reference context window; a mounted row also echoes it into the official capacity input. */
211
220
  contextWindow?: number;
212
- /** Reference max output tokens (display-only). */
221
+ /** Reference max output tokens; a mounted row also echoes it into the official capacity input. */
213
222
  maxTokens?: number;
214
223
  matched: boolean;
215
224
  source: string;
@@ -332,6 +341,39 @@ export interface EffortEditorApi {
332
341
  * decides the ledger, so the call carries it instead of trusting a closure.
333
342
  */
334
343
  commit(route: string, modelId: string, write: PendingWrite): void;
344
+ /**
345
+ * Print a suggestion's reference capacities on this row's own official
346
+ * capacity inputs (context window / max output), when the seam sits on a
347
+ * mounted row. The official form's draft holds the values and its own Save
348
+ * persists them, so they never ride the plugin's document write.
349
+ * Fill-only: an input that already holds a positive number keeps it.
350
+ * Optional — a seam without a row (embedders) simply has nowhere to print,
351
+ * and the editor's own fields still hold the numbers.
352
+ */
353
+ fillCapacities?(contextWindow?: number, maxTokens?: number): void;
354
+ /**
355
+ * The row's official capacity inputs as they stand in the form's draft, for
356
+ * the editor's own two fields to seed from. Absent when the seam has no row
357
+ * (embedders), in which case the fields start blank and stay local.
358
+ */
359
+ readCapacities?(): {
360
+ contextWindow?: number;
361
+ maxTokens?: number;
362
+ };
363
+ /**
364
+ * Write the editor's capacity fields into the official inputs.
365
+ *
366
+ * Not fill-only, unlike {@link fillCapacities}: this is the user typing in the
367
+ * editor, so the value lands over whatever the form held, and `undefined`
368
+ * EMPTIES the input — that is how a capacity goes back to inheriting the
369
+ * catalogue value instead of being pinned to the old number. Keys omitted from
370
+ * `next` are left alone. The official Save still persists, exactly as for
371
+ * {@link fillCapacities}: the form's draft remains the single writer.
372
+ */
373
+ setCapacities?(next: {
374
+ contextWindow?: number | undefined;
375
+ maxTokens?: number | undefined;
376
+ }): void;
335
377
  /**
336
378
  * Withdraw everything this editor reported for its row (the editor's own
337
379
  * Reset). Without it, a Reset followed by the official Save would still write