/* Appearance, Controls, Configs and Cloud pages, the dialogs and the in-game overlays.
   Sizes follow the client's drawing code; text is about three quarters of the sizes written there. */

.em-page { position: absolute; left: calc(var(--sidebar-w) + 28px); top: 103px; width: calc(100% - var(--sidebar-w) - 56px); bottom: 20px; overflow-y: auto; overflow-x: hidden;
  scrollbar-width: thin; scrollbar-color: rgba(143, 160, 190, .35) transparent; }
.em-page::-webkit-scrollbar { width: 5px; }
.em-page::-webkit-scrollbar-thumb { background: rgba(143, 160, 190, .35); border-radius: 3px; }
.em-page > .em-in { padding-right: 5px; padding-bottom: 12px; }
.em-page .em-in > * { margin-bottom: 10px; }
.em-note { color: var(--muted); font-size: 14.6px; line-height: 20px; }
.em-up { white-space: pre; color: var(--muted); font-size: 14.6px; line-height: 34px; text-transform: none; }

/* buttons */
.em-cbtn { height: 34px; min-width: 96px; padding: 0 17px; border-radius: 9px; background: rgba(255,255,255,.063); color: var(--text); font-size: 11.3px; text-align: center; line-height: 34px; white-space: nowrap; }
.em-cbtn:hover { background: rgba(255,255,255,.118); }
.em-cbtn.primary { background: color-mix(in srgb, var(--accent) 24.3%, transparent); }
.em-cbtn.primary:hover { background: color-mix(in srgb, var(--accent) 37.6%, transparent); }
.em-cbtn:disabled { background: none; border: 1px solid rgba(255,255,255,.1); color: var(--muted); cursor: default; padding: 0 16px; }
.em-ibtn { height: 34px; padding: 0 15px; border-radius: var(--frame-radius); background: color-mix(in srgb, color-mix(in srgb, var(--card) 90%, var(--accent)) 88%, transparent); color: var(--text); font-size: 14.6px; line-height: 34px; text-align: center; white-space: nowrap; }
.em-ibtn:hover { background: color-mix(in srgb, var(--accent) 35%, transparent); }
.em-ibtn:disabled { opacity: .4; cursor: default; }
.em-ibtn:disabled:hover { background: color-mix(in srgb, color-mix(in srgb, var(--card) 90%, var(--accent)) 88%, transparent); }
.em-ibtn.wide { padding: 0; }
.em-btnrow { display: flex; gap: 8px; align-items: center; }

/* the "you're using..." strip */
.em-strip { position: relative; border-radius: 14px; background: color-mix(in srgb, var(--card) 80%, transparent); border: 1px solid rgba(124,156,205,.094); padding: 16px 18px 14px; margin-bottom: 32px !important; }
.em-strip.changed { border-color: rgba(242,176,74,.43); }
.em-strip h3 { margin: 0; font-weight: 400; font-size: 14.3px; line-height: 22px; color: var(--text); padding-right: 140px; }
.em-strip p { margin: 4px 0 0; font-size: 10.6px; line-height: 16px; color: var(--muted); height: 30px; }
.em-strip .tag { position: absolute; right: 18px; top: 17px; height: 22px; padding: 0 9px; border-radius: 11px; background: rgba(242,176,74,.15); color: var(--amber); font-size: 9.8px; line-height: 22px; }
.em-strip .btns { display: flex; gap: 8px; flex-wrap: wrap; }
.em-undo { display: flex; align-items: center; height: 50px; padding: 0 8px 0 16px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1.2px solid color-mix(in srgb, var(--accent) 43%, transparent); gap: 8px; margin-bottom: 22px !important; }
.em-undo span { flex: 1; font-size: 11.3px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.em-undo .x { width: 34px; height: 34px; position: relative; color: var(--muted); border-radius: 8px; }
.em-undo .x:hover { color: var(--text); }
.em-undo .x::before, .em-undo .x::after { content: ""; position: absolute; left: 11px; top: 16px; width: 12px; height: 1.6px; background: currentColor; transform: rotate(45deg); }
.em-undo .x::after { transform: rotate(-45deg); }

/* theme gallery */
.em-themes-head { display: flex; align-items: center; justify-content: space-between; height: 34px; margin-bottom: 18px !important; }
.em-gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 35px !important; }
.em-tcard { position: relative; height: 134px; border-radius: 12px; background: color-mix(in srgb, var(--card) 80%, transparent); border: 1px solid rgba(124,156,205,.094); cursor: pointer; padding: 0; }
.em-tcard:hover { background: color-mix(in srgb, color-mix(in srgb, var(--card) 90%, var(--accent)) 88%, transparent); border-color: rgba(88,118,170,.47); }
.em-tcard.active { background: color-mix(in srgb, color-mix(in srgb, var(--card) 82%, var(--accent)) 90%, transparent); border: 1.5px solid var(--accent); }
.em-tcard .thumb { position: absolute; left: 7px; top: 7px; right: 7px; height: 74px; border-radius: 6px; overflow: hidden; border: 1px solid rgba(255,255,255,.07); }
.em-tcard .thumb .sb { position: absolute; left: 0; top: 0; bottom: 0; width: 26px; }
.em-tcard .thumb .row { position: absolute; left: 36px; right: 10px; height: 15px; border-radius: 4px; }
.em-tcard .nm { position: absolute; left: 12px; top: 90px; font-size: 12.8px; line-height: 20px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; right: 60px; }
.em-tcard .tg { position: absolute; right: 12px; top: 91px; font-size: 9px; line-height: 16px; color: var(--accent); }
.em-tcard .tg.chg { color: #f2b04a; }
.em-tcard .sub { position: absolute; left: 12px; top: 112px; font-size: 9.8px; line-height: 14px; color: var(--muted); }
.em-tcard .more { position: absolute; right: 14px; top: 14px; width: 30px; height: 22px; border-radius: 8px; background: rgba(0,0,0,.43); display: flex; align-items: center; justify-content: center; gap: 4px; }
.em-tcard .more:hover { background: rgba(0,0,0,.67); }
.em-tcard .more i, .em-cfg .more i { width: 3.4px; height: 3.4px; border-radius: 50%; background: #ebf0fa; display: block; }
.em-tcard.soon { border: 1.2px solid rgba(58,76,108,.47); background: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.em-tcard.soon:hover { background: none; border-color: color-mix(in srgb, var(--accent, #55acfa) 59%, transparent); }
.em-tcard.soon:hover b { color: var(--text, #f5f6f9); }
.em-tcard.soon:hover small { color: var(--accent, #55acfa); }
.em-tcard.soon b { font-weight: 400; font-size: 12px; color: var(--muted); line-height: 18px; }
.em-tcard.soon small { font-size: 9.8px; color: #697892; }
.em-rule { height: 1px; background: rgba(255,255,255,.098); margin-bottom: 20px !important; }
.em-seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 11px; background: rgba(255,255,255,.039); border: 1px solid rgba(255,255,255,.086); }
.em-segb { height: 34px; padding: 0 17px; border-radius: 8px; font-size: 12px; line-height: 34px; color: #96a4ba; text-align: center; white-space: nowrap; }
.em-segb:hover { background: rgba(255,255,255,.047); }
.em-segb[aria-selected="true"] { background: color-mix(in srgb, var(--accent) 28.2%, transparent); color: #f6f9ff; }

/* setting rows */
.em-cols { display: grid; grid-template-columns: minmax(0, 1fr) 338px; column-gap: 8px; align-items: start; }
.em-cols.one { grid-template-columns: minmax(0, 1fr); }
.em-cols > div > * { margin-bottom: 0; }
.em-srow { position: relative; height: 54px; border-bottom: 1px solid rgba(255,255,255,.063); }
.em-srow.h60 { height: 60px; } .em-srow.h50 { height: 50px; } .em-srow.h100 { height: 100px; }
.em-srow .l { position: absolute; left: 0; top: 50%; margin-top: -11px; font-size: 13.5px; line-height: 22px; color: var(--text); }
.em-srow .l.top { top: 8px; margin-top: 0; }
.em-srow .s { position: absolute; left: 0; top: 32px; font-size: 10.5px; line-height: 16px; color: var(--muted); }
.em-srow .r { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
.em-srow.link { cursor: pointer; }
.em-srow .chev { position: absolute; right: 8px; top: 50%; margin-top: -4px; width: 11px; height: 7px; color: #96a4ba; }
.em-srow.link:hover .chev { color: #ecf3ff; }
.em-sub { margin: 0 0 3px; font-size: 14.6px; line-height: 20px; color: var(--text); }
.em-subm { margin: 0 0 10px; color: var(--muted); font-size: 14.6px; line-height: 20px; }
.em-dots { position: absolute; left: 4px; top: 58px; display: flex; gap: 12px; align-items: center; }
.em-dot { width: 30px; height: 30px; border-radius: 50%; position: relative; cursor: pointer; box-shadow: 0 0 0 1px rgba(255,255,255,.1) inset; flex: none; }
.em-dot[aria-pressed="true"]::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid #ecf3ff; }
.em-dot.wheel { background: conic-gradient(from 0deg, #ff9d9d, #ffe19d, #d9ff9d, #9dffb0, #9dfff2, #9dc5ff, #b49dff, #ff9de6, #ff9d9d); }
.em-dot input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.em-hex { position: relative; height: 34px; padding: 0 10px 0 34px; border-radius: 9px; background: rgba(255,255,255,.039); font-size: 11.3px; line-height: 34px; color: #aab6cb; width: 104px; }
.em-hex i { position: absolute; left: 9px; top: 9px; width: 16px; height: 16px; border-radius: 5px; border: 1px solid rgba(255,255,255,.15); }
.em-chipc { position: relative; display: block; width: 124px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.039); border: 1px solid rgba(255,255,255,.086); font-size: 11.3px; line-height: 32px; color: #aab6cb; padding-left: 36px; cursor: pointer; }
.em-chipc:hover { background: rgba(255,255,255,.07); }
.em-chipc i { position: absolute; left: 9px; top: 7px; width: 18px; height: 18px; border-radius: 5px; border: 1px solid rgba(255,255,255,.157); }
.em-chipc input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.em-flowc > * { margin-bottom: 10px; }
.em-prev { border-radius: 10px; border: 1px solid rgba(255,255,255,.086); padding: 14px; }
.em-prev .t { font-size: 9.8px; line-height: 16px; height: 34px; }
.em-pcard { position: relative; border-radius: 8px; overflow: hidden; }
.em-pcard .mk { position: absolute; left: 19px; top: 50%; margin-top: -11px; width: 22px; height: 22px; }
.em-pcard b { position: absolute; left: 54px; font-weight: 400; font-size: 12.8px; line-height: 17px; }
.em-pcard small { position: absolute; left: 54px; font-size: 9.8px; line-height: 14px; }
.em-pcard .sw { position: absolute; right: 14px; top: 50%; margin-top: -10px; width: 38px; height: 20px; border-radius: 10px; }
.em-pcard .sw::after { content: ""; position: absolute; top: 3.5px; width: 13px; height: 13px; border-radius: 50%; }

/* Controls */
.em-krow { position: relative; display: block; border-radius: 10px; background: color-mix(in srgb, var(--card) 80%, transparent); margin-bottom: 8px !important; height: 56px; }
.em-krow.tall { height: 64px; }
.em-krow:hover { background: color-mix(in srgb, color-mix(in srgb, var(--card) 90%, var(--accent)) 88%, transparent); }
.em-krow .n { position: absolute; left: 18px; top: 16px; font-size: 15px; line-height: 24px; color: var(--text); white-space: nowrap; }
.em-krow.tall .n { top: 8px; }
.em-krow .w { position: absolute; left: 18px; top: 37px; font-size: 11.3px; line-height: 16px; color: var(--muted); }
.em-krow .w.warn { color: #f6ab4d; }
.em-krow .c { position: absolute; right: 14px; top: 10px; display: flex; gap: 8px; }
.em-key { height: 36px; min-width: 140px; padding: 0 17px; border-radius: 9px; border: 1.2px solid color-mix(in srgb, var(--muted) 27%, transparent); background: rgba(255,255,255,.031); font-size: 12px; line-height: 34px; color: var(--muted); text-align: center; white-space: nowrap; }
.em-key:hover { background: rgba(255,255,255,.063); border-color: color-mix(in srgb, var(--muted) 59%, transparent); }
.em-key.bound { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12.5%, transparent); color: var(--text); }
.em-key.rec { background: color-mix(in srgb, var(--accent) 68%, transparent); border-color: var(--accent); color: #fff; }
.em-key.conflict { border-color: #f6ab4d; }
.em-keyx { width: 30px; height: 36px; position: relative; color: var(--muted); }
.em-keyx:hover { color: var(--text); }
.em-keyx::before, .em-keyx::after { content: ""; position: absolute; left: 9px; top: 17px; width: 12px; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.em-keyx::after { transform: rotate(-45deg); }
.em-kfilters { display: flex; align-items: center; gap: 6px; margin-bottom: 10px !important; }
.em-kfilters .p { height: 34px; padding: 0 17px; border-radius: var(--frame-radius); font-size: 14.6px; line-height: 34px; color: var(--text); }
.em-kfilters .p:hover { background: color-mix(in srgb, var(--accent) 35%, transparent); }
.em-kfilters .p[aria-selected="true"] { background: color-mix(in srgb, var(--accent) 28%, transparent); }
.em-kfilters input { flex: 1; margin-left: 8px; height: 36px; border-radius: var(--frame-radius); background: color-mix(in srgb, var(--control) 94%, transparent); border: 0; outline: 0; padding: 0 10px; color: var(--text); font: inherit; user-select: text; }
.em-kfilters input::placeholder { color: var(--muted); opacity: 1; }
.em-h { font-size: 14.6px; line-height: 20px; color: var(--text); }
.em-rule2 { height: 1px; background: rgba(255,255,255,.07); }

/* Configs */
.em-cfgs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 10px !important; }
.em-cfg { position: relative; border-radius: 14px; background: color-mix(in srgb, var(--card) 80%, transparent); border: 1px solid rgba(124,156,205,.094); height: 330px; padding: 0; }
.em-cfg.loaded { background: color-mix(in srgb, color-mix(in srgb, var(--card) 82%, var(--accent)) 90%, transparent); border: 1.5px solid var(--accent); }
.em-cfg:hover { border-color: rgba(88,118,170,.47); }
.em-cfg.loaded:hover { border-color: var(--accent); }
.em-cfg .tag { position: absolute; right: 12px; top: 12px; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 9.8px; line-height: 22px; background: color-mix(in srgb, var(--accent) 15.7%, transparent); color: var(--accent); }
.em-cfg .tag.chg { background: rgba(242,176,74,.15); color: #f2b04a; }
.em-cfg .grp { position: absolute; left: 16px; right: 16px; }
.em-cfg .gh { display: flex; justify-content: space-between; font-size: 8.3px; line-height: 12px; color: #707f99; letter-spacing: .02em; height: 16px; }
.em-cfg .gh b { font-weight: 400; }
.em-cfg .gh b.lit { color: var(--accent); }
.em-cfg .dots { display: flex; flex-wrap: wrap; width: 100%; }
.em-cfg .dots i { width: 13px; height: 14px; position: relative; flex: none; }
.em-cfg .dots i::after { content: ""; position: absolute; left: 0; top: 0; width: 8.4px; height: 8.4px; border-radius: 50%; background: #222f48; }
.em-cfg .dots i.lit::after { background: var(--accent); }
.em-cfg .nm { position: absolute; left: 16px; right: 16px; bottom: 91px; font-size: 15.8px; line-height: 24px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.em-cfg .sm { white-space: pre !important; position: absolute; left: 16px; right: 16px; bottom: 68px; font-size: 10.5px; line-height: 16px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.em-cfg .acts { position: absolute; left: 16px; right: 16px; bottom: 14px; display: flex; gap: 8px; }
.em-cfg .acts .em-cbtn { flex: 1; min-width: 0; }
.em-cfg .more { width: 40px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.063); display: flex; align-items: center; justify-content: center; gap: 5px; flex: none; }
.em-cfg .more:hover { background: rgba(255,255,255,.118); }
.em-cfg .more i { background: var(--muted); }
.em-cfg.new { display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1.2px solid rgba(58,76,108,.59); background: none; cursor: pointer; text-align: center; }
.em-cfg.new:hover { border-color: color-mix(in srgb, var(--accent) 59%, transparent); }
.em-cfg.new .plus { width: 46px; height: 46px; border-radius: 50%; border: 1.6px solid #5a6a86; position: relative; margin-bottom: 20px; }
.em-cfg.new:hover .plus { border-color: var(--accent); }
.em-cfg.new .plus::before, .em-cfg.new .plus::after { content: ""; position: absolute; left: 14px; top: 21.2px; width: 16px; height: 2px; background: var(--muted); }
.em-cfg.new .plus::after { transform: rotate(90deg); }
.em-cfg.new:hover .plus::before, .em-cfg.new:hover .plus::after { background: var(--accent); }
.em-cfg.new b { font-weight: 400; font-size: 12.8px; line-height: 20px; color: var(--text); }
.em-cfg.new small { font-size: 10.5px; color: var(--muted); }
.em-collapse { white-space: pre; display: flex; align-items: center; justify-content: space-between; height: 30px; font-size: 9.8px; letter-spacing: .02em; color: var(--muted); cursor: pointer; text-transform: uppercase; }
.em-collapse:hover { color: var(--text); }
.em-rrow { position: relative; height: 56px; border-radius: 11px; background: color-mix(in srgb, var(--card) 80%, transparent); border: 1px solid rgba(124,156,205,.094); margin-bottom: 6px !important; }
.em-rrow b { position: absolute; left: 16px; top: 9px; font-weight: 400; font-size: 12px; line-height: 18px; color: var(--text); right: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.em-rrow small { position: absolute; left: 16px; top: 31px; font-size: 9.8px; line-height: 14px; color: var(--muted); }
.em-rrow .em-cbtn { position: absolute; right: 12px; top: 10px; }

/* the menu's pop-up menus (rename, copy, export...) */
.em-menu { position: absolute; z-index: 40; min-width: 140px; padding: 4px 0; background: #0d1219; border: 1px solid rgba(110,130,165,.35); border-radius: 4px; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.em-menu div { padding: 4px 8px; line-height: 20px; cursor: pointer; font-size: 14.6px; white-space: nowrap; }
.em-menu div:hover { background: color-mix(in srgb, var(--accent) 30%, transparent); }
.em-menu div.off { color: #6b7385; cursor: default; }
.em-menu div.off:hover { background: none; }
.em-menu hr { border: 0; height: 1px; background: rgba(255,255,255,.1); margin: 4px 0; }

/* dialogs */
.em-dim { position: absolute; inset: 0; background: rgba(3, 4, 10, .62); z-index: 50; display: flex; align-items: center; justify-content: center; }
.em-dlg { position: relative; width: 420px; max-width: calc(100% - 40px); border-radius: 18px; padding: 24px 26px; background: color-mix(in srgb, color-mix(in srgb, var(--bg) 72%, #000) 98.5%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.em-dlg::before { content: ""; position: absolute; left: 30px; right: 30px; top: 0; height: 2px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 85%, transparent), transparent); }
.em-dlg h2 { margin: 0 40px 2px 0; font-weight: 600; font-size: 17.3px; line-height: 26px; color: var(--text); }
.em-dlg .sub { color: var(--muted); font-size: 12.4px; line-height: 17px; margin: 4px 0 6px; }
.em-dlg .x { position: absolute; right: 24px; top: 24px; width: 28px; height: 28px; color: var(--muted); border-radius: 50%; }
.em-dlg .x:hover { color: var(--text); background: rgba(255,255,255,.07); }
.em-dlg .x::before, .em-dlg .x::after { content: ""; position: absolute; left: 8px; top: 13.2px; width: 12px; height: 1.6px; background: currentColor; transform: rotate(45deg); }
.em-dlg .x::after { transform: rotate(-45deg); }
.em-dlg label { display: block; color: var(--muted); font-size: 12.4px; line-height: 20px; margin: 10px 0 0; }
.em-dlg input.f { display: block; width: 100%; height: 38px; margin-top: 6px; border-radius: 10px; background: rgba(4, 7, 15, .9); border: 1px solid rgba(255,255,255,.12); color: var(--text); padding: 0 14px; font: inherit; font-size: 12.4px; outline: 0; user-select: text; }
.em-dlg input.f:focus { border-color: var(--accent); }
.em-dlg .call { margin: 10px 0 0; padding: 12px 12px 12px 15px; border-radius: 10px; background: rgba(247,181,92,.1); border-left: 3px solid rgba(247,181,92,.85); color: #fbe0b8; font-size: 12.4px; line-height: 18px; }
.em-dlg .acts { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.063); display: flex; justify-content: flex-end; gap: 10px; }
.em-dlg .acts button { height: 40px; min-width: 96px; padding: 0 18px; border-radius: 10px; background: rgba(255,255,255,.039); border: 1px solid rgba(255,255,255,.1); color: var(--text); font-size: 12.4px; text-align: center; }
.em-dlg .acts button:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.17); }
.em-dlg .acts button.primary { background: color-mix(in srgb, var(--accent) 62%, transparent); border-color: color-mix(in srgb, var(--accent) 90%, transparent); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.19); }
.em-dlg .acts button.primary:hover { background: color-mix(in srgb, var(--accent) 76%, transparent); }
.em-dlg .acts button.danger { background: rgba(224,72,72,.65); border-color: rgba(255,170,170,.24); color: #fff; }
.em-dlg .acts button:disabled { opacity: .43; cursor: default; }

/* Cloud */
.em-cloud { width: 640px; max-width: 100%; padding: 26px; border-radius: 14px; background: color-mix(in srgb, var(--card) 80%, transparent); border: 1px solid rgba(124,156,205,.094); }
.em-cloud h3 { margin: 0 0 14px; font-weight: 400; font-size: 18px; line-height: 34px; }
.em-cloud p { margin: 0 0 12px; color: var(--muted); font-size: 14.6px; line-height: 20px; }
.em-cloud .fine { color: #707f99; margin-top: 18px; }
.em-cloud .em-cbtn { width: 170px; height: 38px; line-height: 38px; font-size: 12px; margin-top: 12px; background: color-mix(in srgb, var(--accent) 24.3%, transparent); }

/* the game screen around the menu */
.em-scene-hint { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; color: rgba(255,255,255,.55); font-size: 15px; pointer-events: none; }
.em-hud { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }
.em-toasts { position: absolute; right: 20.7px; bottom: 20.7px; width: 310px; display: flex; flex-direction: column; gap: 8.6px; align-items: stretch; pointer-events: none; z-index: 20; }
.em-toast { position: relative; display: flex; align-items: center; gap: 10.3px; padding: 0 12px; min-height: 49.8px; border-radius: 8.6px;
  background: color-mix(in srgb, color-mix(in srgb, var(--card) 70%, var(--bg)) 94%, transparent); border: 1px solid rgba(138, 151, 173, .16);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 6px 18px rgba(0,0,0,.3), 0 14px 34px rgba(0,0,0,.18); animation: em-toast-in .32s cubic-bezier(.2,.8,.2,1); }
.em-toast .ico { flex: none; width: 25.8px; height: 25.8px; border-radius: 50%; display: grid; place-items: center; color: var(--accent);
  background: color-mix(in srgb, currentColor 16%, transparent); box-shadow: 0 0 0 .5px color-mix(in srgb, currentColor 38%, transparent) inset, 0 0 12px color-mix(in srgb, currentColor 12%, transparent); }
.em-toast .ico svg { width: 25.8px; height: 25.8px; }
.em-toast.off .ico { color: var(--muted); box-shadow: 0 0 0 .5px color-mix(in srgb, currentColor 38%, transparent) inset; }
.em-toast.warn .ico { color: #f7b55c; }
.em-toast .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 11px 0; gap: 2.6px; }
.em-toast .tx b { font-weight: 600; font-size: 11.6px; line-height: 15px; color: var(--text); }
.em-toast .tx small { font-size: 10px; line-height: 13.5px; color: var(--muted); }
.em-toast .badge { font-weight: 600; font-size: 8.4px; line-height: 17px; height: 17.2px; padding: 0 8.6px; border-radius: 8.6px; color: var(--accent);
  border: .9px solid color-mix(in srgb, var(--accent) 40%, transparent); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.em-toast.off .badge { color: var(--muted); border-color: color-mix(in srgb, var(--muted) 40%, transparent); background: color-mix(in srgb, var(--muted) 16%, transparent); }
.em-toast .timer { position: absolute; left: 8.6px; right: 8.6px; bottom: 2.6px; height: 1.3px; border-radius: 1px; background: color-mix(in srgb, var(--accent) 45%, transparent); transform-origin: 0 50%; animation: em-timer var(--dur, 4s) linear forwards; }
.em-toast.warn .timer { background: rgba(247,181,92,.45); }
.em-toast.off .timer { background: color-mix(in srgb, var(--muted) 45%, transparent); }
.em-toast.leave { opacity: 0; transform: translateX(21px); transition: opacity .24s, transform .24s; }
@keyframes em-timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes em-toast-in { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }

.em-body.page { left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; }
.em-body.page > * { pointer-events: auto; }
