/* Shared, scoped feedback. Typography and state colors follow the site tokens. */
.bd-site .bd-feedback{display:flex;align-items:flex-start;gap:var(--space-3);padding:var(--space-4);border:1px solid var(--line);border-radius:var(--radius-card);background:var(--wash);color:var(--ink);font:400 var(--text-label)/1.6 var(--font);text-align:left}
.bd-site .bd-feedback>.bd-icon{margin-top:3px;flex:none}.bd-feedback-copy{flex:1;min-width:0;overflow-wrap:anywhere}
.bd-site .bd-feedback .bd-feedback-title{margin:0;font-size:inherit;font-weight:600;line-height:1.5}.bd-site .bd-feedback .bd-feedback-text{margin:4px 0 0;font-size:inherit;white-space:pre-line}.bd-site .bd-feedback-copy>.bd-feedback-text:first-child{margin-top:0}
.bd-site .bd-feedback--success{color:var(--bd-success);background:var(--bd-success-soft);border-color:var(--bd-success)}
.bd-site .bd-feedback--error{color:var(--bd-error);background:var(--bd-error-soft);border-color:var(--bd-error)}
.bd-site .bd-feedback-action{display:inline-flex;align-items:center;gap:var(--space-2);min-height:44px;padding:6px 0;margin-top:4px;color:inherit;font:600 var(--text-label)/1.5 var(--font);border:0;background:none;text-decoration:underline;text-underline-offset:3px;text-align:left}
.bd-site .bd-feedback-action:hover{color:inherit;text-decoration-thickness:2px}
.bd-site .bd-feedback-dismiss{flex:none;display:grid;place-items:center;width:44px;min-height:44px;padding:10px;border:0;border-radius:var(--radius-control);background:transparent;color:inherit;margin:-8px -8px -8px 0;cursor:pointer}
.bd-site .bd-feedback-dismiss:hover{background:rgb(23 28 28 / 6%)}
.bd-site .bd-feedback :focus-visible,.bd-site .bd-feedback-dialog :focus-visible{outline:3px solid currentColor;outline-offset:3px}
.bd-site .bd-feedback-dialog{position:fixed;inset:0;margin:auto;width:min(560px,calc(100vw - 32px));max-width:560px;max-height:calc(100dvh - 48px);padding:var(--space-7);border:1px solid var(--line);border-radius:var(--radius);background:var(--paper);color:var(--ink);box-shadow:var(--shadow-dialog);overflow-y:auto;overscroll-behavior:contain}
.bd-feedback-dialog::backdrop{background:rgb(23 28 28 / 55%)}
.bd-feedback-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--space-5)}
.bd-site .bd-feedback-dialog h2{font:600 1.375rem/1.35 var(--font);letter-spacing:0;text-wrap:balance;margin:0}
.bd-site .bd-feedback-dialog [data-bd-dialog-focus]:focus{outline:none}
.bd-site .bd-feedback-dialog-description{font-size:var(--text-label);color:var(--muted);margin:var(--space-3) 0 0}
.bd-feedback-dialog-body{margin-top:var(--space-5);font-size:var(--text-label);line-height:1.65}.bd-feedback-dialog-body>:last-child{margin-bottom:0}
.bd-feedback-dialog-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:var(--space-3);margin-top:var(--space-6)}
.bd-feedback-dock{position:fixed;z-index:10000;right:max(var(--gutter),env(safe-area-inset-right));bottom:max(24px,env(safe-area-inset-bottom));width:min(400px,calc(100vw - 32px));display:flex;flex-direction:column;gap:var(--space-3);max-height:calc(100dvh - 120px);overflow-y:auto;overscroll-behavior:contain;pointer-events:none;padding:6px}
.bd-feedback-dock:not(:has(.bd-feedback)){display:none}.bd-toast-region{display:flex;flex-direction:column;gap:var(--space-3)}.bd-global-notice{pointer-events:auto}.bd-global-notice>.bd-feedback{box-shadow:var(--shadow-dialog)}.bd-toast-region:empty{display:none}.bd-site .bd-toast{pointer-events:auto;box-shadow:var(--shadow-dialog);animation:bd-toast-in var(--motion-fast) ease-out}
.bd-feedback-demo>.bd-feedback{margin-block:var(--space-4)}.bd-feedback-demo-controls{margin-top:var(--space-5)}
@keyframes bd-toast-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(max-width:620px){.bd-site .bd-feedback-dialog{padding:var(--space-5)}.bd-site .bd-feedback-dialog h2{font-size:1.25rem}.bd-feedback-dialog-actions{flex-direction:column-reverse}.bd-feedback-dialog-actions>.button{width:100%}.bd-feedback-dock{right:10px;bottom:max(12px,env(safe-area-inset-bottom));width:calc(100vw - 20px)}.bd-site .bd-feedback{font-size:.875rem}}
@media(prefers-reduced-motion:reduce){.bd-site .bd-toast{animation:none}}
/* Keep native visibility semantics independent of parent-theme dialog styling. */
.bd-site .bd-feedback-dialog:not([open]){display:none}.bd-site .bd-feedback-dialog[open]{display:block}
