:root {
  --bg: #0b0d14;
  --bg2: #12151f;
  --panel: #171b28;
  --panel2: #1f2434;
  --line: #2a3145;
  --txt: #e8ecf6;
  --dim: #8b93aa;
  --acc: #6ee7ff;
  --acc2: #a78bfa;
  --rec: #ff4d6d;
  --ok: #34d399;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font: 15px/1.5 "Segoe UI", system-ui, sans-serif;
  color: var(--txt);
  background:
    radial-gradient(1100px 500px at 15% -10%, #1c2a4a 0%, transparent 60%),
    radial-gradient(900px 500px at 90% 0%, #34215a 0%, transparent 55%),
    var(--bg);
}

h1, h2 { margin: 0; }
kbd {
  font: 11px/1 ui-monospace, monospace;
  background: #0006; border: 1px solid var(--line);
  border-radius: 4px; padding: 2px 4px;
}

/* ------------------------------------------------------------- topbar */
.topbar {
  display: flex; flex-wrap: wrap; gap: 20px;
  align-items: center; justify-content: space-between;
  padding: 16px 22px;
  background: #0b0d14cc;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; gap: 12px; align-items: center; }
.logo {
  font-size: 22px; letter-spacing: -3px;
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 900;
}
.topbar h1 { font-size: 19px; letter-spacing: .3px; }
.tagline { margin: 0; font-size: 12px; color: var(--dim); }

.transport { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

.ctl { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--dim); }
.ctl > span { text-transform: uppercase; letter-spacing: .08em; }
.ctl i { font-style: normal; color: var(--acc); margin-left: 4px; }
.ctl input[type=range] { width: 110px; }

input[type=range] {
  -webkit-appearance: none; appearance: none;
  height: 4px; border-radius: 4px; background: var(--line); outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%;
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  border: 2px solid #0b0d14; cursor: pointer;
}

select {
  background: var(--panel2); color: var(--txt);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 8px; font-size: 13px;
}
.ctl-select select { min-width: 130px; }

.octave-box {
  display: flex; align-items: center; gap: 6px;
  background: var(--panel2); border: 1px solid var(--line);
  border-radius: 8px; padding: 3px 6px;
}
.octave-box b { font-size: 13px; min-width: 32px; text-align: center; color: var(--txt); }

/* ------------------------------------------------------------- barre basse */
.bassbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  padding: 10px 22px;
  background: linear-gradient(90deg, #1a1436cc, #0f1424cc);
  border-bottom: 1px solid var(--line);
}
.bassbar.off { opacity: .5; }
.bassbar.off .ctl { pointer-events: none; }
.bassbar .switch b { color: var(--acc2); }
.bassbar-hint { margin: 0; font-size: 11px; color: var(--dim); flex: 1; min-width: 220px; }

/* ------------------------------------------------------------- boutons */
.btn {
  background: var(--panel2); color: var(--txt);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 14px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: .15s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn:hover { border-color: var(--acc); transform: translateY(-1px); }
.btn-mini { padding: 2px 8px; border-radius: 6px; font-size: 14px; }
.btn-ghost { background: transparent; }
.btn-power.on {
  background: linear-gradient(135deg, #0d3b3f, #1c2b52);
  border-color: var(--acc); color: var(--acc);
}
.btn-danger { color: #ffb3c0; border-color: #4a2233; }
.btn-danger:hover { border-color: var(--rec); }

.switch { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--dim); cursor: pointer; }
.switch input { accent-color: var(--acc); width: 15px; height: 15px; }
.switch.small { font-size: 11px; }

.pill {
  background: var(--panel2); border: 1px solid var(--line);
  border-radius: 999px; padding: 1px 10px; font-size: 12px; color: var(--acc);
}

/* ------------------------------------------------------------- layout */
main { padding: 20px 22px 40px; max-width: 1400px; margin: 0 auto; }

.panel {
  background: linear-gradient(180deg, var(--panel), #141824);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 18px 40px -24px #000;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 12px; }
.panel h2 { font-size: 15px; letter-spacing: .3px; }

.columns { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; margin-top: 18px; }
@media (max-width: 1000px) { .columns { grid-template-columns: 1fr; } }

.hint { font-size: 12px; color: var(--dim); margin: 14px 0 0; }
.hint.small { font-size: 11px; }
.dot-demo {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--acc); box-shadow: 0 0 8px var(--acc); vertical-align: middle;
}

/* ------------------------------------------------------------- piano */
.piano-scroll { overflow-x: auto; padding: 6px 2px 14px; }
.piano {
  position: relative; height: 200px; margin: 0 auto;
  user-select: none; touch-action: none;
}

.key {
  position: absolute; top: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  align-items: center; gap: 4px; padding-bottom: 9px;
  cursor: pointer; transition: transform .04s, filter .08s;
}
.key .kb { font-size: 11px; font-weight: 700; opacity: .55; }
.key .note { font-size: 9px; letter-spacing: .04em; opacity: .4; }
.key .dot {
  position: absolute; top: 10px; width: 7px; height: 7px; border-radius: 50%;
  background: transparent; transition: .2s;
}
.key.has-sample .dot { background: var(--acc); box-shadow: 0 0 9px var(--acc); }
.key.has-spread .dot { background: var(--acc2); box-shadow: 0 0 7px var(--acc2); opacity: .8; }

.key.white {
  height: 200px;
  background: linear-gradient(180deg, #f4f7ff 0%, #d7ddec 88%, #b9c1d6 100%);
  border: 1px solid #8f97ad; border-radius: 0 0 7px 7px;
  color: #2b3245;
  box-shadow: inset 0 -6px 10px -6px #0007;
}
.key.black {
  height: 126px; z-index: 3;
  background: linear-gradient(180deg, #2b3347 0%, #10141f 90%);
  border: 1px solid #060812; border-radius: 0 0 6px 6px;
  color: #cfd6ea;
  box-shadow: 0 6px 12px -4px #000, inset 0 -5px 8px -6px #fff3;
}
.piano.compact .key .note { font-size: 8px; }
.piano.compact .key .kb { font-size: 10px; }

/* zone de basse (à gauche du split) */
.key.bass-zone::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--acc2), #7c5cff);
}
.key.white.bass-zone {
  background: linear-gradient(180deg, #eef1ff 0%, #cdd3f0 88%, #aeb6dd 100%);
}
.key.black.bass-zone {
  background: linear-gradient(180deg, #332b57 0%, #130f24 90%);
}

.key.white:active, .key.white.active {
  background: linear-gradient(180deg, #cfe9ff, #8fd2ff);
  transform: translateY(2px);
}
.key.black:active, .key.black.active {
  background: linear-gradient(180deg, #3d5fa8, #21365f);
  transform: translateY(2px);
}
.key.selected { outline: 2px solid var(--acc2); outline-offset: -2px; }
.key.drop { outline: 2px dashed var(--ok); outline-offset: -3px; }

/* ------------------------------------------------------------- sampler */
.target-row { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }

.rec-row { display: flex; align-items: center; gap: 14px; }
.btn-rec {
  background: linear-gradient(135deg, #3a1424, #24182f);
  border-color: #5c2338; color: #ffd9e1; padding: 11px 18px;
}
.btn-rec:hover { border-color: var(--rec); }
.rec-dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--rec); box-shadow: 0 0 10px var(--rec);
}
.btn-rec.armed { border-color: #ffb703; color: #ffe6a8; }
.btn-rec.armed .rec-dot { background: #ffb703; box-shadow: 0 0 10px #ffb703; }
.btn-rec.recording { border-color: var(--rec); background: linear-gradient(135deg, #55162a, #3a1030); }
.btn-rec.recording .rec-dot { animation: pulse .9s infinite; }
@keyframes pulse { 50% { opacity: .25; transform: scale(.8); } }

.meter {
  flex: 1; height: 10px; min-width: 80px;
  background: #0c0f18; border: 1px solid var(--line);
  border-radius: 999px; overflow: hidden;
}
.meter-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--ok), #ffd166 70%, var(--rec));
  transition: width .05s linear;
}
.rec-time { font: 12px ui-monospace, monospace; color: var(--dim); min-width: 48px; text-align: right; }

.status {
  font-size: 12px; color: var(--dim); margin: 12px 0 0;
  background: #0c0f18; border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px;
}

/* ------------------------------------------------------------- éditeur */
.editor { margin-top: 16px; }
.editor.is-empty { opacity: .45; pointer-events: none; }
.wave-empty {
  display: none; position: absolute; inset: 0; margin: 0; z-index: 5;
  text-align: center; line-height: 120px;
  font-size: 12px; color: var(--dim);
}
.editor.is-empty .wave-empty { display: block; }
.editor.is-empty .trim-handle,
.editor.is-empty .trim-mask { display: none; }

.wave-wrap {
  position: relative; height: 120px;
  background: #0a0d15; border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden;
}
.wave-wrap canvas { display: block; }
.trim-handle {
  position: absolute; top: 0; width: 3px; height: 100%;
  background: var(--acc2); cursor: ew-resize; z-index: 4;
  box-shadow: 0 0 8px var(--acc2);
}
.trim-handle::after {
  content: ''; position: absolute; top: 50%; left: -5px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--acc2); transform: translateY(-50%);
}
.trim-mask {
  position: absolute; top: 0; height: 100%; background: #0a0d15bb; z-index: 2;
}
#trim-mask-a { left: 0; }
#trim-mask-b { right: 0; }

.editor-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px; margin-top: 16px;
}
.editor-grid .ctl input[type=range] { width: 100%; }
.editor-flags { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; }
.editor-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.editor-actions .btn { font-size: 12px; padding: 8px 12px; }

/* ------------------------------------------------------------- banque */
.bank-list { list-style: none; margin: 0; padding: 0; max-height: 380px; overflow-y: auto; }
.bank-list .empty { font-size: 12px; color: var(--dim); padding: 18px 4px; text-align: center; }
.bank-item {
  display: grid;
  grid-template-columns: 28px 46px 1fr auto 28px 28px;
  align-items: center; gap: 8px;
  padding: 7px 8px; border-radius: 9px;
  border: 1px solid transparent;
}
.bank-item:hover { background: #ffffff08; }
.bank-item.current { border-color: var(--acc2); background: #a78bfa14; }
.bank-note { font: 700 12px ui-monospace, monospace; color: var(--acc); }
.bank-name { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bank-dur, .bank-flags { font: 11px ui-monospace, monospace; color: var(--dim); }
.bank-flags { grid-column: 3; justify-self: end; font-size: 10px; color: var(--acc2); }
.mini {
  background: var(--panel2); border: 1px solid var(--line); color: var(--txt);
  width: 26px; height: 26px; border-radius: 7px; cursor: pointer; font-size: 12px;
  display: grid; place-items: center;
}
.mini:hover { border-color: var(--acc); }
.bank-actions { display: flex; gap: 9px; margin-top: 14px; flex-wrap: wrap; }
.file-btn { cursor: pointer; }

/* ----------------------------------------------------------- bibliothèque */
.library-panel { margin-top: 18px; }
.lib-head-right { display: flex; align-items: center; gap: 14px; }

.lib-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(520px, 1fr)); gap: 8px;
}
@media (max-width: 1100px) { .lib-list { grid-template-columns: 1fr; } }

.lib-item {
  display: grid; grid-template-columns: 38px 1fr auto 26px 26px;
  align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 11px;
  border: 1px solid var(--line); background: #ffffff05;
  transition: .15s;
}
.lib-item:hover { background: #ffffff0c; border-color: #3d4767; }
.lib-item.current {
  border-color: var(--acc); background: linear-gradient(90deg, #6ee7ff18, transparent);
}

.lib-play {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, #13404f, #2b2360);
  border: 1px solid var(--line); color: var(--acc);
  font-size: 13px; cursor: pointer; display: grid; place-items: center;
}
.lib-play:hover { border-color: var(--acc); transform: scale(1.06); }
.lib-item.current .lib-play { border-color: var(--acc); box-shadow: 0 0 12px -2px var(--acc); }

.lib-text { min-width: 0; }
.lib-name { font-size: 13.5px; font-weight: 600; }
.lib-tag {
  margin-left: 8px; font-size: 10px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--acc2); border: 1px solid #3a3268; border-radius: 999px; padding: 1px 7px;
  white-space: nowrap;
}
.lib-desc {
  margin: 3px 0 0; font-size: 11.5px; color: var(--dim); line-height: 1.45;
}
.lib-meta { font: 10.5px ui-monospace, monospace; color: var(--dim); white-space: nowrap; text-align: right; }
.lib-list .empty { grid-column: 1 / -1; font-size: 12px; color: var(--dim); padding: 18px; text-align: center; }

.lib-group {
  grid-column: 1 / -1;
  display: flex; align-items: baseline; gap: 12px;
  margin: 10px 0 2px; padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--acc);
}
.lib-group:first-child { margin-top: 0; }
.lib-group i {
  font-style: normal; font-weight: 400; letter-spacing: 0; text-transform: none;
  font-size: 11px; color: var(--dim);
}

/* ------------------------------------------------------- séquenceur / song */
.song-panel { margin-top: 18px; }

.song-transport { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.song-transport .btn.on { border-color: var(--ok); color: #d9fff0; }

.song-progress {
  position: relative; flex: 1; min-width: 160px; height: 16px;
  background: #0c0f18; border: 1px solid var(--line);
  border-radius: 999px; cursor: pointer; touch-action: none;
  display: flex; align-items: center;
}
.song-progress::after {
  content: ''; position: absolute; inset: 5px 0; border-radius: 999px;
  background: #0c0f18;
}
.song-bar {
  position: absolute; left: 0; top: 5px; bottom: 5px; width: 0%; z-index: 2;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--acc), var(--acc2));
  transition: width .1s linear;
}
.song-head {
  position: absolute; top: 50%; left: 0; z-index: 3;
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: #fff; border: 2px solid var(--acc2);
  box-shadow: 0 0 8px -1px var(--acc2);
  transition: left .1s linear;
}
.song-progress:hover .song-head { transform: scale(1.15); }

.btn-mini2 { font-size: 11px; padding: 8px 10px; }
.song-transport.paused .song-bar { opacity: .55; }
.song-transport.paused .song-head { background: #ffd166; border-color: #ffb703; }

.song-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end; margin-top: 14px; }
.song-row .grow { flex: 1; min-width: 200px; max-width: 420px; }
.text-input {
  background: var(--panel2); color: var(--txt);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; font-size: 13px; width: 100%;
}
.text-input:focus { outline: none; border-color: var(--acc); }

.song-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.song-actions .btn { font-size: 12px; padding: 8px 12px; }

.song-columns {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px;
}
@media (max-width: 1000px) { .song-columns { grid-template-columns: 1fr; } }

.sub {
  margin: 0 0 8px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em; color: var(--dim);
}
.sub small { text-transform: none; letter-spacing: 0; font-weight: 400; opacity: .7; }

.song-item { grid-template-columns: 28px 1fr auto 28px 28px 28px; }

.export-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin-top: 16px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 11px;
  background: linear-gradient(90deg, #6ee7ff0d, transparent);
}
.export-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .09em; color: var(--dim);
}
.export-row .btn { font-size: 12px; padding: 8px 14px; }
.export-row .btn:disabled { opacity: .45; cursor: progress; }
.export-progress {
  flex: 1; min-width: 120px; height: 8px;
  background: #0c0f18; border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
}
.export-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--ok), var(--acc));
  transition: width .2s linear;
}
.export-state { font: 11px ui-monospace, monospace; color: var(--dim); min-width: 150px; }
.btn-small { font-size: 11px; padding: 6px 10px; }
.lib-item { grid-template-columns: 38px 1fr auto 26px 26px 26px; }

.json-box {
  width: 100%; height: 260px; resize: vertical;
  background: #0a0d15; color: #b8f3ff;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 12px; font: 11px/1.55 ui-monospace, "Cascadia Mono", monospace;
  white-space: pre; overflow: auto;
}
.json-box:focus { outline: none; border-color: var(--acc2); }

/* --------------------------------------------------------- analyse audio */
.analyze-panel { margin-top: 18px; }
.an-drop { position: relative; margin-bottom: 14px; }
.an-drop.over { outline: 2px dashed var(--ok); outline-offset: 4px; }

.spectro {
  display: block; width: 100%; height: 260px;
  background: #080b14; border: 1px solid var(--line); border-radius: 11px;
}
.an-drop .drop-hint {
  position: absolute; inset: 0; margin: 0; display: grid; place-items: center;
  text-align: center; font-size: 12px; color: var(--dim); pointer-events: none;
}
/* `display: grid` ci-dessus l'emporterait sur l'attribut hidden */
.an-drop .drop-hint[hidden] { display: none; }
.an-progress {
  position: absolute; left: 10px; right: 10px; bottom: 8px; height: 4px;
  background: #0006; border-radius: 999px; overflow: hidden;
}
.an-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--acc), var(--acc2));
  transition: width .15s linear;
}
.kit-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  margin-top: 12px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px;
  background: linear-gradient(90deg, #6ee7ff0d, transparent);
}
.kit-row .switch b { color: var(--acc); }

.filter-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  margin-bottom: 12px; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 11px;
  background: linear-gradient(90deg, #34d39910, transparent);
}
.filter-row .ctl-select select { min-width: 150px; }

.modes-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  margin-bottom: 14px; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 11px;
  background: linear-gradient(90deg, #6ee7ff10, #a78bfa10);
}
.modes-row .switch { font-size: 12.5px; }
.modes-row .switch b { color: var(--txt); }

.sync-row { background: linear-gradient(90deg, #a78bfa12, transparent); }
.sync-row .ctl input[type=range] { width: 140px; }
.an-grid { margin-top: 0; }
.an-grid .text-input { max-width: 110px; }
.an-notes {
  margin: 10px 0 0; padding: 10px 12px;
  background: #0a0d15; border: 1px solid var(--line); border-radius: 10px;
  font: 11px/1.9 ui-monospace, monospace; color: #ffe066;
  max-height: 120px; overflow-y: auto; word-spacing: 3px;
  white-space: pre-line;      /* une ligne par couche */
}

/* ------------------------------------------------------------- import IA */
.import-panel { margin-top: 18px; }
.pill.link { text-decoration: none; }
.pill.link:hover { border-color: var(--acc); }

.steps { margin: 0 0 16px; padding-left: 22px; font-size: 13px; color: var(--dim); }
.steps li { margin-bottom: 5px; }
.steps b { color: var(--txt); }
.steps i { color: var(--acc); font-style: italic; }
.steps code {
  font: 11px ui-monospace, monospace; background: #0006;
  border: 1px solid var(--line); border-radius: 4px; padding: 1px 4px;
}

.import-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 14px 0; }
.import-actions .btn { font-size: 12px; padding: 8px 12px; }
.btn-primary {
  background: linear-gradient(135deg, #103d4c, #2a2358);
  border-color: var(--acc); color: #cdf6ff;
}

.prompt-box {
  max-height: 300px; overflow: auto; margin: 0 0 14px;
  background: #0a0d15; border: 1px solid var(--acc2); border-radius: 10px;
  padding: 12px; font: 11px/1.55 ui-monospace, monospace; color: #d6c9ff;
  white-space: pre-wrap; user-select: all;
}

.drop-zone { position: relative; border-radius: 12px; transition: .15s; }
.drop-zone.over { outline: 2px dashed var(--ok); outline-offset: 4px; }
.drop-zone.over .drop-hint { color: var(--ok); }
.json-box.big { height: 300px; white-space: pre-wrap; word-break: break-word; }
.drop-hint {
  margin: 6px 0 0; text-align: right; font-size: 11px; color: var(--dim);
}

.report {
  border-radius: 10px; padding: 12px 14px; margin: 4px 0 0;
  font-size: 12.5px; line-height: 1.7;
  background: #0c0f18; border: 1px solid var(--line);
}
.report.ok { border-color: var(--ok); }
.report.err { border-color: var(--rec); color: #ffdde4; }
.report small { color: var(--dim); }

/* ------------------------------------------------------------- toast */
.toast {
  position: fixed; bottom: 22px; left: 50%;
  transform: translate(-50%, 24px);
  background: var(--panel2); border: 1px solid var(--line);
  color: var(--txt); padding: 11px 18px; border-radius: 999px;
  font-size: 13px; opacity: 0; pointer-events: none; transition: .25s; z-index: 50;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { border-color: var(--ok); color: #d9fff0; }
.toast.err { border-color: var(--rec); color: #ffd9e1; }
