notice = (node, type) => html`<style>.ui-notice {
--notice-color: hsl(225, 31%, 95%);
position:relative;
box-sizing: border-box;
border: 1px solid rgba(0,0,0,.3);
background: var(--notice-color);
padding: 3px 8px 3px 2em;
max-width: 640px;
font-size: 16px;
font-family: -apple-system, BlinkMacSystemFont, "avenir next", avenir,
helvetica, "helvetica neue", ubuntu, roboto, noto, "segoe ui", arial,
sans-serif;
}
.ui-notice:before {content: "ℹ ";position: absolute; top:50%;left:.5em; transform: translateY(-50%)}
.ui-notice-tip:before {content: "✔";}
.ui-notice-warn:before {content: "⚠";}
.ui-notice-error:before {content: "🚨 ";}
.ui-notice-tip {--notice-color: #76f023}
.ui-notice-warn {--notice-color: #ffc251}
.ui-notice-error {--notice-color: #ff7171}
.ui-notice p:first-child { margin-top: 0; }
.ui-notice p:last-child { margin-bottom: 0; }</style>
${
node.classList.add("ui-notice", type ? `ui-notice-${type}` : undefined) ||
node
}`