/* Borderless notices retain their colored 30px title bar. */
 .notices{
     --notice-bar:var(--border);
     position:relative;
     border-radius:0;
     margin:16px 0;
     padding:42px 14px 12px;
     font-size:14px;
     border:0;
     background:var(--card);
}
 .notices__bar{
     position:absolute;
     inset:0 0 auto;
     height:30px;
     background:var(--notice-bar);
 }
 .notices::before{
     position:absolute;
     z-index:1;
     left:10px;
     top:4px;
     width:20px;
     height:20px;
     display:grid;
     place-items:center;
     font-size:16px;
     line-height:1;
     color:#1f1f1f;
}
 .notices::after{
     position:absolute;
     z-index:1;
     top:5px;
     left:36px;
     font-family:var(--mono);
     font-weight:700;
     font-size:11px;
     letter-spacing:.06em;
     text-transform:uppercase;
     color:#1f1f1f;
     content:attr(data-title);
}
 .notices.warning{
     --notice-bar:#d4a017;
     background:color-mix(in oklab, #fef9c3 38%, var(--card));
}
 .notices.warning::before{
     content:"⚠";
}
 .notices.info{
     --notice-bar:#5a8fb5;
     background:color-mix(in oklab, #e0f2fe 35%, var(--card));
}
 .notices.info::before{
     content:"ℹ";
}
 .notices.error{
     --notice-bar:#c27a7a;
     background:color-mix(in oklab, #fee2e2 35%, var(--card));
}
 .notices.error::before{
     content:"✕";
}
 .notices.success{
     --notice-bar:#6a9e6a;
     background:color-mix(in oklab, #dcfce7 35%, var(--card));
}
 .notices.success::before{
     content:"✓";
}
 .notices.note{
     --notice-bar:var(--border);
     background:color-mix(in oklab, var(--foreground) 4%, var(--card));
}
/* Was "🛈" (U+1F6C8 CIRCLED INFORMATION SOURCE) - a rare pictograph outside the common emoji
   set, with patchy font coverage on some mobile browsers/OSes (renders as a blank/missing-
   glyph box there instead of an icon). ✎ (U+270E, Dingbats) is a plain monochrome symbol,
   the same well-supported block the other variants' icons (⚠ℹ✕✓) already come from. */
 .notices.note::before{
     content:"✎";
     color:var(--background);
}
 .notices.note::after{
     color:var(--background);
}
 .notices.tip{
     --notice-bar:#6a9e6a;
     background:color-mix(in oklab, #dcfce7 32%, var(--card));
}
 .notices.tip::before{
     content:"💡";
}
 /* .notices.note's bar is var(--border) (above) - opaque dark in light theme, so
    ::before/::after use var(--background) (light) for contrast. In mono theme --border is
    a LIGHT color at 70% alpha (themes/mono.css), which composites to a light-ish bar over
    this box's own dark background, not a dark one - #f5f5f5 (near-white) text here used to
    assume the same dark-bar case as light theme and measured ~2:1 contrast against the
    real composited bar (checked via canvas pixel sampling, since border-color alpha isn't
    visible in a plain color diff). var(--primary-foreground) is mono's own dark-on-light
    token - the correct pairing for this variant's actually-light bar in this theme. */
 :is([data-theme="mono"],[data-color-scheme="dark"]) .notices.note::before{
     color:var(--primary-foreground);
}
 :is([data-theme="mono"],[data-color-scheme="dark"]) .notices.note::after{
     color:var(--primary-foreground);
}
 :is([data-theme="mono"],[data-color-scheme="dark"]) .notices.warning{
     background:color-mix(in oklab, #facc15 18%, var(--card));
}
 :is([data-theme="mono"],[data-color-scheme="dark"]) .notices.info{
     background:color-mix(in oklab, #38bdf8 18%, var(--card));
}
 :is([data-theme="mono"],[data-color-scheme="dark"]) .notices.error{
     background:color-mix(in oklab, #f87171 18%, var(--card));
}
 :is([data-theme="mono"],[data-color-scheme="dark"]) .notices.success{
     background:color-mix(in oklab, #4ade80 18%, var(--card));
}
 :is([data-theme="mono"],[data-color-scheme="dark"]) .notices.note{
     background:color-mix(in oklab, var(--foreground) 6%, var(--card));
}
 :is([data-theme="mono"],[data-color-scheme="dark"]) .notices.tip{
     background:color-mix(in oklab, #22c55e 16%, var(--card));
}
/* No mono override for the icon/title color of warning/info/error/success/tip (unlike
   .notices.note above) - their title bars are fixed, fully-opaque hex colors
   (#d4a017/#5a8fb5/#c27a7a/#6a9e6a), not theme tokens, so they render identically in both
   themes and the base #1f1f1f (dark) already has good contrast (~5-7:1) against all of
   them in either theme. A blanket :is([data-theme="mono"],[data-color-scheme="dark"]) .notices::after{ color:#f5f5f5; }
   used to swap them all to near-white here on the assumption that "mono theme = needs
   light text", without checking these specific bars - measured ~2-3:1 contrast against
   every one of them (checked via canvas pixel sampling + WCAG relative-luminance contrast
   ratio), well under the 4.5:1 this text size needs. Only .notices.note actually needs a
   per-theme swap, because its bar is the one variant built from a theme token
   (--notice-bar:var(--border)) instead of a fixed color. */
