/* One semantic notice for errors, warnings and information. Meaning never depends on colour. Information is
   neutral (the ink control tone on the neutral surface and rule); errors, warnings and success keep their tones. */
.feedback { --feedback-tone:var(--control); display:flex; align-items:flex-start; gap:12px; padding:14px; border:1px solid color-mix(in srgb,var(--feedback-tone) 25%,var(--line)); border-radius:var(--r-inset, 10px); background:color-mix(in srgb,var(--feedback-tone) 4%,var(--white)); color:var(--ink); overflow-wrap:anywhere; }
.feedback[data-feedback="error"] { --feedback-tone:var(--crit); }
.feedback[data-feedback="warning"] { --feedback-tone:var(--warn); }
/* Older notice hosts (Django messages, allauth form errors, the wallet-access warning, the setup step error) draw the same
   surface with the same tones, so every notice in the app reads as one element. */
:is(.messages > li, .identity-page .errorlist, .setup-access-warning, .setup-error) { --feedback-tone:var(--control); padding:14px 16px; border:1px solid color-mix(in srgb,var(--feedback-tone) 25%,var(--line)); border-radius:var(--r-inset, 10px); background:color-mix(in srgb,var(--feedback-tone) 4%,var(--white)); color:var(--ink); font:400 13.5px/1.6 var(--font-b); overflow-wrap:anywhere; }
:is(.messages > .error, .identity-page .errorlist, .setup-error) { --feedback-tone:var(--crit); }
:is(.messages > .warning, .setup-access-warning) { --feedback-tone:var(--warn); }
.messages > .success { --feedback-tone:var(--green); }
.feedback__icon { display:inline-flex; align-items:center; justify-content:center; flex:0 0 20px; height:20px; border:2px solid currentColor; border-radius:50%; color:var(--feedback-tone); font:700 15px/1 var(--font-b); }
.feedback__icon > span { display:none; }
.feedback[data-feedback="error"] [data-feedback-symbol="error"],
.feedback[data-feedback="warning"] [data-feedback-symbol="warning"],
.feedback[data-feedback="info"] [data-feedback-symbol="info"] { display:inline; }
.feedback__content { flex:1; min-width:0; display:grid; gap:8px; font:400 13.5px/1.6 var(--font-b); }
.feedback__title { display:block; color:var(--ink); font-weight:600; }
.feedback [data-feedback-body]:empty { display:none; }
.feedback [data-feedback-body] > :first-child { margin-block-start:0; }
.feedback [data-feedback-body] > :last-child { margin-block-end:0; }
/* An optional close X in the notice corner, the icon button of .copy-btn; it submits the caller's form. Like the
   icon on the left it takes 20px of the row; the rest of its target reaches into the gap and the padding. */
.feedback__close { display:inline-flex; align-items:center; justify-content:center; flex:none; width:32px; height:32px; margin:-6px; padding:0; color:var(--mute); background:transparent; border:1px solid transparent; border-radius:6px; cursor:pointer; }
.feedback__close:hover { color:var(--ink); border-color:var(--line); background:var(--white); }
@media (max-width:560px), (pointer:coarse) { .feedback__close { width:44px; height:44px; margin:-12px; } }
.feedback-cue { display:flex; align-items:center; gap:6px; color:var(--ink); font:600 12px/1.5 var(--font-b); }
.feedback-cue .feedback__icon { flex-basis:16px; height:16px; font-size:12px; color:var(--crit); }
.feedback-cue[hidden] { display:none; }
/* A notice inside a stat column keeps the notice gap from the figure's caption above it. */
.vp-stat > .feedback { margin-block-start:16px; }
