/* n8n.workflow.backup
   Sibling to managed.automation.monitoring and deliberately the same instrument:
   dark console, hairline rules, monospace for anything machine-generated, one
   loud accent per state. Where that app is a phone-first triage queue, this one
   is a desk instrument — wider column, denser grid, and a strip-chart timeline
   as the centrepiece, because the failure this replaces was invisible silence. */

@font-face {
  font-family: 'Plex Sans'; src: url('/fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Plex Sans'; src: url('/fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Plex Mono'; src: url('/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Plex Mono'; src: url('/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  --ink:      #0b1118;
  --panel:    #111a25;
  --panel-2:  #16212e;
  --brand:    #2d4059;
  --line:     rgba(141, 172, 209, .13);
  --line-2:   rgba(141, 172, 209, .22);

  --text:     #e6edf6;
  --text-2:   #8ea4bd;
  --text-3:   #5b7089;

  /* Status tokens, shared with the sibling app. Reserved for state — never
     reused as decoration. Validated against --panel: both clear 3:1, but
     ok<->failed separation under deuteranopia is only ΔE 7.2, so every status
     in the grid carries a second, non-colour signal (hatch, hollow, notch). */
  --bad:      #ff5f52;
  --warn:     #f5a623;
  --good:     #2fbf87;

  --radius:   13px;
  --tap:      44px;
  --ease:     cubic-bezier(.22, 1, .36, 1);

  --col:      1180px;
  --gutter:   max(14px, calc((100% - var(--col)) / 2 + 14px));

  --cell:     15px;   /* heatmap cell edge */
  --cellgap:  3px;
}

* { box-sizing: border-box; }

/* The UA rule is `[hidden] { display: none }`, which any author `display:`
   declaration outranks — and .login/.view both set a display. Without this the
   login screen never goes away. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--ink);
  color: var(--text);
  font-family: 'Plex Sans', ui-sans-serif, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(120% 45% at 50% -8%, rgba(45, 64, 89, .55), transparent 70%);
  background-repeat: no-repeat;
}

.mono { font-family: 'Plex Mono', ui-monospace, monospace; }
.dim  { color: var(--text-3); }

/* film grain — keeps large dark areas from banding on OLED panels */
.grain {
  position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

::selection { background: var(--brand); color: #fff; }

/* ── buttons ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 18px;
  border: 1px solid transparent; border-radius: 10px;
  font: 600 14px/1 'Plex Sans', sans-serif; letter-spacing: .01em;
  cursor: pointer; text-decoration: none;
  transition: background .18s var(--ease), border-color .18s var(--ease), transform .12s var(--ease);
}
.btn:active { transform: scale(.985); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn--sm { min-height: 36px; padding: 0 13px; font-size: 13px; border-radius: 9px; }

.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: #365075; }

.btn--ghost {
  width: 100%; margin-top: 18px; background: transparent; color: var(--text);
  border-color: var(--line-2);
}
.btn--ghost:hover { background: var(--panel-2); border-color: var(--brand); }

.iconbtn {
  display: grid; place-items: center;
  width: 38px; height: 38px; padding: 0;
  background: transparent; color: var(--text-2);
  border: 1px solid transparent; border-radius: 9px;
  cursor: pointer; transition: color .18s, background .18s, border-color .18s;
}
.iconbtn:hover { color: var(--text); background: var(--panel-2); border-color: var(--line); }

/* ── login ───────────────────────────────────────────────────────────── */

.login { display: grid; place-items: center; min-height: 100dvh; padding: 24px; }
.login__card {
  width: 100%; max-width: 340px;
  display: flex; flex-direction: column; align-items: center;
  padding: 38px 28px 30px;
  background: linear-gradient(180deg, var(--panel), var(--ink));
  border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9);
  animation: rise .5s var(--ease) both;
}
.login__lockup { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.login__mark { flex: none; display: block; width: 42px; height: 42px; opacity: .97; }
.login__wordmark { display: block; width: auto; height: 24px; opacity: .97; }
.login__title { margin: 0 0 26px; font: 500 12.5px/1 'Plex Mono', monospace; text-align: center; }
.login__label {
  align-self: flex-start;
  font: 400 11px/1 'Plex Mono', monospace; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 9px;
}
.login__input {
  width: 100%; min-height: var(--tap); padding: 0 14px; margin-bottom: 16px;
  background: var(--ink); color: var(--text);
  border: 1px solid var(--line-2); border-radius: 10px;
  font: 400 16px/1 'Plex Mono', monospace; /* 16px stops mobile zoom-on-focus */
  outline: none; transition: border-color .18s, box-shadow .18s;
}
.login__input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(45, 64, 89, .45); }
.login__submit { width: 100%; }
.login__error { margin: 14px 0 0; color: var(--bad); font: 400 12.5px/1.4 'Plex Mono', monospace; text-align: center; }

/* ── topbar ──────────────────────────────────────────────────────────── */

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(10px, env(safe-area-inset-top)) var(--gutter) 10px;
  background: rgba(11, 17, 24, .82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.topbar__brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.topbar__mark { flex: none; display: block; width: 28px; height: 28px; opacity: .97; }
/* align-items must not be the default `stretch`: this is a column flex, so the
   cross axis is horizontal and a width:auto <img> would stretch to the
   container width, letterboxing the SVG and faking a left indent. */
.topbar__stack { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.topbar__wordmark { display: block; width: auto; height: 15px; opacity: .97; }
.topbar__app {
  margin: 0; min-width: 0;
  font: 400 10.5px/1.25 'Plex Mono', monospace; color: var(--text-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.topbar__actions { display: flex; align-items: center; gap: 8px; flex: none; }

.health {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px 5px 9px; border-radius: 999px;
  font: 400 11.5px/1 'Plex Mono', monospace; white-space: nowrap;
  border: 1px solid var(--line-2); color: var(--text-2); background: var(--panel);
}
.health::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.health--ok   { color: var(--good); border-color: rgba(47, 191, 135, .38); background: rgba(47, 191, 135, .10); }
.health--bad  { color: var(--bad);  border-color: rgba(255, 95, 82, .40);  background: rgba(255, 95, 82, .10); }
.health--busy { color: var(--warn); border-color: rgba(245, 166, 35, .40); background: rgba(245, 166, 35, .10); }
.health--busy::before { animation: pulse 1.4s ease-in-out infinite; }
@media (max-width: 620px) { .health { display: none; } }

/* ── tabs ────────────────────────────────────────────────────────────── */

.tabs {
  position: sticky; top: 0; z-index: 15;
  display: flex; gap: 4px; padding: 12px var(--gutter) 10px;
  overflow-x: auto; scrollbar-width: none;
  background: linear-gradient(180deg, var(--ink) 70%, transparent);
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; min-height: 34px; padding: 0 14px;
  background: transparent; color: var(--text-3);
  border: 1px solid transparent; border-radius: 999px;
  font: 400 12.5px/1 'Plex Mono', monospace; cursor: pointer; white-space: nowrap;
  transition: color .18s, background .18s, border-color .18s;
}
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--text); background: var(--panel); border-color: var(--line-2); }

.main { padding: 4px var(--gutter) calc(46px + env(safe-area-inset-bottom)); }
.view { animation: rise .34s var(--ease) both; }

/* ── panels ──────────────────────────────────────────────────────────── */

.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 20px; margin-bottom: 14px;
}
.panel__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 14px;
}
.panel__title { margin: 0; font: 600 14px/1.2 'Plex Sans', sans-serif; }
.panel__sub { margin: 5px 0 0; font-size: 12.5px; color: var(--text-3); max-width: 62ch; }

.segmented { display: inline-flex; background: var(--ink); border: 1px solid var(--line-2); border-radius: 9px; padding: 3px; }
.segmented button {
  min-height: 28px; padding: 0 11px; background: transparent; color: var(--text-3);
  border: 0; border-radius: 7px; cursor: pointer;
  font: 400 12px/1 'Plex Mono', monospace; transition: color .16s, background .16s;
}
.segmented button:hover { color: var(--text); }
.segmented button.is-on { color: var(--text); background: var(--brand); }

/* ── fleet cards ─────────────────────────────────────────────────────── */

.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }

.card {
  position: relative; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 17px 15px;
  animation: rise .42s var(--ease) both;
}
/* Status rail down the left edge — the same at-a-glance device the sibling app
   uses for its error rows. */
.card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--text-3);
}
.card--ok::before   { background: var(--good); }
.card--bad::before  { background: var(--bad); }
.card--warn::before { background: var(--warn); }

.card__head { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; }
.card__name { margin: 0; font: 500 14px/1 'Plex Mono', monospace; }
.card__badge {
  margin-left: auto; padding: 3px 8px; border-radius: 6px;
  font: 400 10.5px/1 'Plex Mono', monospace; letter-spacing: .04em; text-transform: uppercase;
}
.card__badge--ok   { color: var(--good); background: rgba(47, 191, 135, .12); }
.card__badge--bad  { color: var(--bad);  background: rgba(255, 95, 82, .12); }
.card__badge--warn { color: var(--warn); background: rgba(245, 166, 35, .12); }

.card__when { display: flex; align-items: baseline; gap: 8px; margin-bottom: 3px; }
.card__age  { font: 600 26px/1 'Plex Sans', sans-serif; letter-spacing: -.02em; }
.card__abs  { font: 400 11.5px/1 'Plex Mono', monospace; color: var(--text-3); }
.card__label {
  font: 400 10.5px/1 'Plex Mono', monospace; letter-spacing: .13em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 14px;
}

.card__strip { display: flex; gap: var(--cellgap); margin-bottom: 14px; }

.card__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat__n { font: 500 15px/1.1 'Plex Mono', monospace; }
.stat__k {
  font: 400 10px/1.2 'Plex Mono', monospace; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-3); margin-top: 3px;
}

.card__err {
  margin: 13px 0 0; padding: 9px 11px;
  background: rgba(255, 95, 82, .08); border: 1px solid rgba(255, 95, 82, .28);
  border-radius: 9px; color: #ffb3ac;
  font: 400 11.5px/1.45 'Plex Mono', monospace;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.card__note {
  margin: 12px 0 0; font: 400 11px/1.45 'Plex Mono', monospace; color: var(--text-3);
}

/* ── timeline heatmap ────────────────────────────────────────────────── */

.legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 15px; padding: 0; list-style: none; }
.legend li {
  display: inline-flex; align-items: center; gap: 7px;
  font: 400 11.5px/1 'Plex Mono', monospace; color: var(--text-2);
}
.swatch { width: 13px; height: 13px; border-radius: 3px; flex: none; }
.swatch--ok      { background: rgba(47, 191, 135, .30); border: 1px solid rgba(47, 191, 135, .5); }
.swatch--changed { background: var(--good); }
.swatch--failed  {
  background: var(--bad);
  background-image: repeating-linear-gradient(45deg, transparent 0 2px, rgba(0, 0, 0, .5) 2px 4px);
}
.swatch--none    { background: transparent; border: 1px dashed var(--line-2); }

.heat__scroll { overflow-x: auto; padding-bottom: 6px; }
.heat { display: grid; gap: var(--cellgap); width: max-content; min-width: 100%; }
.heat__row { display: grid; grid-template-columns: 116px auto; align-items: center; gap: 12px; }
.heat__label {
  font: 400 11.5px/1 'Plex Mono', monospace; color: var(--text-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.heat__cells { display: flex; gap: var(--cellgap); }
.heat__ticks { display: flex; gap: var(--cellgap); height: 15px; }
.heat__tick {
  flex: none; font: 400 10px/15px 'Plex Mono', monospace; color: var(--text-3);
  white-space: nowrap; overflow: visible;
}

.cell {
  flex: none; width: var(--cell); height: var(--cell);
  border-radius: 3px; border: 1px solid transparent; cursor: default;
  transition: transform .12s var(--ease), box-shadow .12s var(--ease);
}
.cell:hover { transform: scale(1.28); box-shadow: 0 0 0 2px var(--panel), 0 0 0 3px var(--line-2); }
/* Ran, nothing to save — the quiet, normal state. */
.cell--ok      { background: rgba(47, 191, 135, .30); border-color: rgba(47, 191, 135, .5); }
/* Ran and captured an edit. */
.cell--changed { background: var(--good); }
/* Hatched as well as red: hue alone is not enough at ΔE 7.2 for deuteranopia. */
.cell--failed  {
  background: var(--bad);
  background-image: repeating-linear-gradient(45deg, transparent 0 2px, rgba(0, 0, 0, .5) 2px 4px);
}
/* Hollow, not filled: absence should read as a hole in the record. */
.cell--none    { background: transparent; border: 1px dashed var(--line-2); }

/* ── generic rows (runs + workflows) ─────────────────────────────────── */

.rows { display: flex; flex-direction: column; gap: 8px; }

.row {
  position: relative; width: 100%; text-align: left;
  padding: 13px 15px 13px 18px;
  background: var(--panel); color: inherit;
  border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; overflow: hidden;
  transition: background .18s var(--ease), border-color .18s var(--ease);
  animation: rise .38s var(--ease) both;
}
.row:hover { background: var(--panel-2); border-color: var(--line-2); }
.row::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--text-3); }
.row--ok::before   { background: var(--good); }
.row--bad::before  { background: var(--bad); }
.row--warn::before { background: var(--warn); }

.row__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row__title { font: 500 13.5px/1.3 'Plex Sans', sans-serif; }
.row__meta { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.row__chip {
  padding: 2px 7px; border-radius: 5px; background: rgba(141, 172, 209, .1);
  font: 400 10.5px/1.5 'Plex Mono', monospace; color: var(--text-2);
}
.row__chip--on { color: var(--good); background: rgba(47, 191, 135, .12); }
.row__time { font: 400 11.5px/1 'Plex Mono', monospace; color: var(--text-3); white-space: nowrap; }
.row__sub  { margin-top: 7px; font: 400 11.5px/1.5 'Plex Mono', monospace; color: var(--text-3); }

.row__detail {
  margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line);
  display: grid; gap: 7px;
}
.row__line {
  display: grid; grid-template-columns: 120px 62px 1fr auto; gap: 10px; align-items: baseline;
  font: 400 11.5px/1.5 'Plex Mono', monospace; color: var(--text-2);
}
.row__line b { font-weight: 400; color: var(--text); }
.row__line .ok   { color: var(--good); }
.row__line .bad  { color: var(--bad); }
@media (max-width: 620px) { .row__line { grid-template-columns: 1fr auto; } .row__line i { display: none; } }

/* ── search ──────────────────────────────────────────────────────────── */

.searchbar {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
  padding: 0 14px; background: var(--panel);
  border: 1px solid var(--line-2); border-radius: 10px; color: var(--text-3);
}
.searchbar:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(45, 64, 89, .4); }
.searchbar input {
  flex: 1; min-width: 0; min-height: 42px; padding: 0;
  background: transparent; color: var(--text); border: 0; outline: none;
  font: 400 16px/1 'Plex Mono', monospace;
}
.searchbar input::placeholder { color: var(--text-3); font-size: 13px; }
.searchbar__count { font-size: 11.5px; white-space: nowrap; }

/* ── stat tiles ──────────────────────────────────────────────────────── */

.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); margin-bottom: 14px; }
.tile {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 16px; animation: rise .4s var(--ease) both;
}
.tile__n { font: 600 24px/1 'Plex Sans', sans-serif; letter-spacing: -.02em; }
.tile__k {
  margin-top: 6px; font: 400 10.5px/1.3 'Plex Mono', monospace;
  letter-spacing: .1em; text-transform: uppercase; color: var(--text-3);
}
.tile__sub { margin-top: 4px; font: 400 11px/1.4 'Plex Mono', monospace; color: var(--text-3); }

.table__scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font: 400 12.5px/1 'Plex Mono', monospace; }
.table th {
  text-align: left; padding: 0 12px 9px 0; color: var(--text-3); font-weight: 400;
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
}
.table td { padding: 9px 12px 9px 0; border-top: 1px solid var(--line); color: var(--text-2); white-space: nowrap; }
.table td:first-child { color: var(--text); }

/* ── drawer ──────────────────────────────────────────────────────────── */

.sheet { position: fixed; inset: 0; z-index: 60; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(4, 8, 12, .68); backdrop-filter: blur(3px); animation: fade .22s var(--ease) both; }
.sheet__panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(640px, 100%);
  display: flex; flex-direction: column;
  background: var(--panel); border-left: 1px solid var(--line-2);
  animation: slide .3s var(--ease) both;
}
@media (max-width: 700px) {
  .sheet__panel { top: auto; width: 100%; max-height: 88dvh; border-left: 0; border-top: 1px solid var(--line-2); border-radius: 18px 18px 0 0; animation: rise .3s var(--ease) both; }
}
.sheet__head { padding: 16px 20px 14px; border-bottom: 1px solid var(--line); }
.sheet__grab { display: block; width: 42px; height: 4px; margin: 0 auto 12px; border-radius: 99px; background: var(--line-2); cursor: pointer; }
@media (min-width: 701px) { .sheet__grab { display: none; } }
.sheet__meta { display: flex; gap: 12px; font-size: 11.5px; font-family: 'Plex Mono', monospace; }
.sheet__title { margin: 8px 0 0; font: 600 16px/1.3 'Plex Sans', sans-serif; overflow-wrap: anywhere; }
.sheet__body { padding: 18px 20px calc(28px + env(safe-area-inset-bottom)); overflow-y: auto; }

.fieldlabel {
  margin: 0 0 8px; font: 400 10.5px/1 'Plex Mono', monospace;
  letter-spacing: .14em; text-transform: uppercase; color: var(--text-3);
}
.hint { margin: 0 0 12px; font-size: 12px; color: var(--text-3); }

.history { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.history li {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; background: var(--ink);
  border: 1px solid var(--line); border-radius: 9px; cursor: pointer;
  font: 400 11.5px/1.4 'Plex Mono', monospace; color: var(--text-2);
  transition: border-color .16s, background .16s;
}
.history li:hover { border-color: var(--line-2); background: var(--panel-2); }
.history li.is-picked { border-color: var(--brand); background: rgba(45, 64, 89, .3); color: var(--text); }
.history__pick {
  flex: none; width: 18px; height: 18px; border-radius: 5px;
  border: 1px solid var(--line-2); display: grid; place-items: center;
  font-size: 9px; color: var(--text-3);
}
.history li.is-picked .history__pick { background: var(--brand); border-color: var(--brand); color: #fff; }
.history__sha { color: var(--text-3); }
.history__msg { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.diff {
  margin: 0; padding: 12px 14px; max-height: 46vh; overflow: auto;
  background: var(--ink); border: 1px solid var(--line); border-radius: 10px;
  font: 400 11.5px/1.55 'Plex Mono', monospace; color: var(--text-2);
  white-space: pre; tab-size: 2;
}
/* Each diff line is its own block, so an empty context line still needs to
   occupy a row rather than collapsing to nothing. */
.diff span { display: block; min-height: 1.55em; }
.diff .add  { color: #8ff0c4; background: rgba(47, 191, 135, .10); }
.diff .del  { color: #ffb3ac; background: rgba(255, 95, 82, .10); }
.diff .hunk { color: var(--text-3); margin-top: 6px; }

/* ── tooltip + toast ─────────────────────────────────────────────────── */

.tip {
  position: fixed; z-index: 90; pointer-events: none;
  padding: 8px 11px; max-width: 260px;
  background: #06090d; border: 1px solid var(--line-2); border-radius: 8px;
  box-shadow: 0 16px 40px -18px rgba(0, 0, 0, .95);
  font: 400 11.5px/1.5 'Plex Mono', monospace; color: var(--text);
  animation: fade .12s var(--ease) both;
}
.tip b { font-weight: 500; }
.tip .muted { color: var(--text-3); }

.toast {
  position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom));
  transform: translateX(-50%); z-index: 95;
  padding: 11px 17px; border-radius: 10px;
  background: #06090d; border: 1px solid var(--line-2);
  box-shadow: 0 18px 44px -20px rgba(0, 0, 0, .95);
  font: 400 12.5px/1 'Plex Mono', monospace; color: var(--text);
  animation: rise .3s var(--ease) both;
}

/* ── empty ───────────────────────────────────────────────────────────── */

.empty { padding: 46px 20px; text-align: center; color: var(--text-3); }
.empty__title { margin: 0 0 6px; font: 600 15px/1.2 'Plex Sans', sans-serif; color: var(--text-2); }
.empty__sub { margin: 0; font-size: 12.5px; }

/* ── motion ──────────────────────────────────────────────────────────── */

@keyframes rise  { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
@keyframes fade  { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
