/* Pingkitty dashboard — vanilla CSS, mobile-first.
   Palette + type direction from landing-page/BRAND.md. Modern visual pass
   (ROADMAP Phase 4 item 6): typography scale, spacing rhythm, hover/focus
   micro-interactions, and a modal — still zero dependencies, no build step. */

:root {
  --ink: #0B0B0A;
  --panel: #141312;
  --panel-raised: #1B1917;
  --line: #2A2826;
  --line-soft: #211F1D;
  --paper: #F2F0EC;
  --dim: #9C9892;
  --signal: #6FBF7A;
  --alert: #E2694B;
  --warn: #E0B84C;

  --font-display: "Space Grotesk", "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-ui: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;

  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --ease: cubic-bezier(.2, .7, .3, 1);
  --dur-fast: 120ms;
  --dur-med: 220ms;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.modal-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }

::selection { background: rgba(111,191,122,0.28); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.dim { color: var(--dim); }

/* ---------- Topbar ---------- */

.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(11, 11, 10, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity var(--dur-fast) var(--ease);
}

.brand:hover { opacity: 0.85; }

.brand__mark { color: var(--signal); display: inline-flex; }

.brand__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.topbar__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.btn:hover { border-color: var(--dim); background: rgba(242,240,236,0.04); transform: translateY(-1px); }
.btn:active { transform: scale(0.97); }

.btn--ghost { background: transparent; }

.link-btn {
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--dim);
  background: none;
  border: none;
  padding: 2px 0;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.link-btn:hover { color: var(--signal); border-color: var(--signal); }

/* ---------- Main layout ---------- */

.main {
  flex: 1;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

/* ---------- Summary strip ---------- */

.summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .summary { grid-template-columns: repeat(4, 1fr); }
}

.summary__tile {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  animation: rise-in var(--dur-med) var(--ease) both;
}

.summary__tile:nth-child(1) { animation-delay: 0ms; }
.summary__tile:nth-child(2) { animation-delay: 40ms; }
.summary__tile:nth-child(3) { animation-delay: 80ms; }
.summary__tile:nth-child(4) { animation-delay: 120ms; }

.summary__tile:hover {
  border-color: var(--dim);
  background: var(--panel-raised);
  transform: translateY(-1px);
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.summary__tile .value {
  font-family: var(--font-mono);
  font-size: 26px;
  line-height: 1;
  display: block;
  margin-bottom: 4px;
}

.summary__tile .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--dim);
}

.summary__tile--up .value { color: var(--signal); }
.summary__tile--down .value { color: var(--alert); }
.summary__tile--degraded .value { color: var(--warn); }

/* ---------- Services section ---------- */

.services__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
  flex-wrap: wrap;
}

.services__head-actions {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
}

.services__head h1 {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 500;
  margin: 0;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  transition: border-color var(--dur-med) var(--ease), background var(--dur-med) var(--ease), transform var(--dur-med) var(--ease);
  animation: rise-in var(--dur-med) var(--ease) both;
}

.service-card:nth-child(1) { animation-delay: 0ms; }
.service-card:nth-child(2) { animation-delay: 40ms; }
.service-card:nth-child(3) { animation-delay: 80ms; }
.service-card:nth-child(4) { animation-delay: 120ms; }
.service-card:nth-child(n+5) { animation-delay: 160ms; }

.service-card:hover {
  border-color: var(--dim);
  background: var(--panel-raised);
  transform: translateY(-1px);
}

.service-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.service-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

.status-dot--up { background: var(--signal); box-shadow: 0 0 0 3px rgba(111,191,122,0.15); }
.status-dot--down {
  background: var(--alert);
  box-shadow: 0 0 0 3px rgba(226,105,75,0.18);
  animation: pulse-alert 1.8s ease-in-out infinite;
}
.status-dot--degraded { background: var(--warn); box-shadow: 0 0 0 3px rgba(224,184,76,0.18); }

@keyframes pulse-alert {
  0%, 100% { box-shadow: 0 0 0 3px rgba(226,105,75,0.18); }
  50% { box-shadow: 0 0 0 6px rgba(226,105,75,0.28); }
}

.service-name {
  font-weight: 600;
  font-size: 15px;
}

.service-target {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
  margin-top: 2px;
}

.service-latency {
  text-align: right;
}

.service-latency .value {
  font-family: var(--font-mono);
  font-size: 20px;
}

.service-latency .label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.service-card__sparkline {
  margin-top: 10px;
  height: 36px;
}

.service-card__sparkline svg { width: 100%; height: 100%; display: block; }

/* Region breakdown */

.region-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.region-cell {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: border-color var(--dur-fast) var(--ease);
}

.region-cell:hover { border-color: var(--dim); }

.service-card__actions {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: flex-end;
}

.region-cell__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.region-cell__latency {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--dim);
}

.status-dot--sm { width: 7px; height: 7px; }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 14px 16px;
  text-align: center;
}

.footer .mono { font-size: 10px; }

/* ---------- Utility states ---------- */

.error-banner {
  border: 1px solid var(--alert);
  background: rgba(226,105,75,0.08);
  color: var(--paper);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 13px;
}

.warning-banner {
  border: 1px solid var(--warn);
  background: rgba(224,184,76,0.1);
  color: var(--paper);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 13px;
}

/* ---------- Outage history modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

@media (min-width: 640px) {
  .modal { align-items: center; }
}

.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11,11,10,0.72);
  backdrop-filter: blur(2px);
  animation: fade-in var(--dur-med) var(--ease);
}

.modal__panel {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 82vh;
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: var(--space-5);
  animation: slide-up var(--dur-med) var(--ease);
}

@media (min-width: 640px) {
  .modal__panel {
    border-radius: var(--radius-lg);
    margin: 0 16px;
    animation: pop-in var(--dur-med) var(--ease);
  }
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-up { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes pop-in { from { transform: scale(0.97) translateY(6px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }

.modal__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: var(--space-4);
}

.modal__head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  margin: 0;
}

.modal__note {
  font-size: 11px;
  margin-top: var(--space-3);
}

.outage-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.outage-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--dim);
  padding: 6px 10px 6px 0;
  border-bottom: 1px solid var(--line);
}

.outage-table td {
  padding: 8px 10px 8px 0;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

.outage-table td:first-child {
  white-space: nowrap;
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
}

.outage-row--ongoing td { color: var(--alert); }

/* Wide content inside the modal (the outage table) scrolls independently
   rather than forcing the page body to scroll horizontally. */
.modal__body { overflow-x: auto; }

/* ---------- Phase 4 items 7-15: tabs, matrix, test panel, maintenance,
   incidents, subscribe. Reuses the existing tokens (--panel, --line,
   --signal/--alert/--warn, spacing scale) rather than introducing a new
   style system. ---------- */

/* ---------- Tab navigation ---------- */

.tabs {
  border-bottom: 1px solid var(--line);
  background: rgba(11, 11, 10, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 57px; /* sits right under the sticky topbar */
  z-index: 9;
  overflow-x: auto;
}

.tabs__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 4px;
  padding: 0 16px;
}

.tab {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--dim);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.tab:hover { color: var(--paper); }
.tab.is-active { color: var(--paper); border-color: var(--signal); }

.view__head { margin-bottom: var(--space-4); }

.view__head h1 {
  font-family: var(--font-display);
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 500;
  margin: 0 0 4px;
}

.view__head p { margin: 0; font-size: 13px; }

/* ---------- Badges (maintenance, incident status, job status) ---------- */

.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--dim);
  vertical-align: middle;
}

.badge--maintenance { color: var(--warn); border-color: rgba(224,184,76,0.4); background: rgba(224,184,76,0.08); }
.badge--active { color: var(--warn); border-color: rgba(224,184,76,0.4); }
.badge--scheduled { color: var(--dim); }
.badge--ended { color: var(--dim); opacity: 0.6; }
.badge--investigating,
.badge--pending { color: var(--warn); border-color: rgba(224,184,76,0.4); }
.badge--identified,
.badge--claimed { color: var(--dim); }
.badge--monitoring { color: var(--signal); border-color: rgba(111,191,122,0.4); }
.badge--resolved,
.badge--done { color: var(--signal); border-color: rgba(111,191,122,0.4); }

/* ---------- Generic panel forms (maintenance, incidents, job dispatch) ---------- */

.panel-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-3);
  margin: var(--space-3) 0;
  padding: var(--space-4);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.panel-form--update,
.panel-form--maintenance { padding: var(--space-3); margin-top: var(--space-3); }

/* ---------- Add-monitor modal form ---------- */

.monitor-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 520px) {
  .monitor-form-grid { grid-template-columns: repeat(2, 1fr); }
  .monitor-form-grid .field--grow { grid-column: 1 / -1; }
}

.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line-soft);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}

.field--grow { flex: 1 1 220px; }

.field span,
.field legend {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--dim);
  padding: 0;
}

.field--checks {
  border: none;
  display: flex;
  flex-direction: row;
  gap: var(--space-3);
  align-items: center;
}

.field--checks label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--paper);
  text-transform: none;
}

input[type="text"],
input[type="email"],
input[type="datetime-local"],
select {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--paper);
  background: var(--panel-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
}

input:focus-visible,
select:focus-visible { outline: 2px solid var(--signal); outline-offset: 1px; }

.panel-form--update {
  display: flex;
  gap: var(--space-2);
}

.panel-form--update input[type="text"] { flex: 1; }

/* ---------- Matrix view ---------- */

.matrix-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.matrix-grid { overflow-x: auto; }

.matrix-table {
  display: grid;
  gap: 2px;
  min-width: 640px;
}

.matrix-corner { background: transparent; }

.matrix-col-label,
.matrix-row-label {
  font-size: 9px;
  color: var(--dim);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
}

.matrix-row-label { justify-content: flex-start; text-transform: uppercase; letter-spacing: .05em; }

.matrix-cell {
  height: 22px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  padding: 0;
  transition: transform var(--dur-fast) var(--ease), outline var(--dur-fast) var(--ease);
}

.matrix-cell:hover { transform: scale(1.15); outline: 1px solid var(--paper); }

.matrix-detail {
  margin-top: var(--space-4);
  padding: var(--space-4);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.matrix-detail h3 { margin: 0 0 var(--space-2); font-family: var(--font-display); font-weight: 500; }

/* ---------- Job dispatch / test panel ---------- */

.job-results { margin-top: var(--space-4); }

.job-summary {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.job-region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-3);
}

.job-region-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  background: var(--panel);
}

.job-region-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
}

.job-fields {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px var(--space-3);
  margin: 0;
  font-size: 13px;
}

.job-fields dt { color: var(--dim); font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; align-self: center; }
.job-fields dd { margin: 0; }

.job-raw {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 11px;
  background: var(--panel-raised);
  padding: var(--space-2);
  border-radius: var(--radius-sm);
}

.hops-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.hops-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  color: var(--dim);
  padding: 4px 8px 4px 0;
  border-bottom: 1px solid var(--line);
}
.hops-table td { padding: 5px 8px 5px 0; border-bottom: 1px solid var(--line-soft); }

/* ---------- Maintenance list ---------- */

.maintenance-list { list-style: none; margin: 0 0 var(--space-3); padding: 0; display: flex; flex-direction: column; gap: 6px; }

.maintenance-list__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.maintenance-list__rrule { margin-left: auto; }
.maintenance-list__item .link-btn { margin-left: auto; }
.maintenance-list__item .maintenance-list__rrule + .link-btn { margin-left: var(--space-2); }

/* ---------- Monitor detail modal sections (extends outage modal) ---------- */

.modal__head-actions { display: flex; gap: var(--space-2); align-items: center; }
.modal__section-title {
  font-family: var(--font-ui);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--dim);
  margin: var(--space-4) 0 var(--space-2);
}
.modal__body section:first-child .modal__section-title { margin-top: 0; }
.modal__body svg { width: 100%; height: auto; display: block; }

/* ---------- Incidents ---------- */

.view-toggle { display: flex; gap: 4px; margin-bottom: var(--space-4); }

.toggle-btn {
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--dim);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  cursor: pointer;
}

.toggle-btn.is-active { color: var(--paper); border-color: var(--signal); }

.incident-list { display: flex; flex-direction: column; gap: var(--space-3); }

.incident-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.incident-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.incident-card__head h3 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 17px; }

.incident-updates { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }

.incident-update {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding-left: var(--space-3);
  border-left: 2px solid var(--line);
}

.incident-update p { margin: 0 0 2px; font-size: 13px; }

/* ---------- Subscribe widget ---------- */

.subscribe-widget {
  margin-top: var(--space-6);
  padding: var(--space-5);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.subscribe-widget h2 { font-family: var(--font-display); font-weight: 500; font-size: 19px; margin: 0 0 4px; }
.subscribe-widget p { margin: 0 0 var(--space-3); }

.subscribe-form { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.subscribe-form input[type="email"] { flex: 1 1 220px; }

.subscribe-form__note { margin: var(--space-2) 0 0; font-size: 12.5px; min-height: 1em; }
.subscribe-form__note--ok { color: var(--signal); }
.subscribe-form__note--warn { color: var(--warn); }

/* ---------- Toast (share-link fallback confirmation) ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) translateY(12px);
  background: var(--panel-raised);
  border: 1px solid var(--line);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  max-width: min(90vw, 420px);
  z-index: 200;
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease);
  pointer-events: none;
}

.toast[hidden] { display: none; }
.toast.toast--visible { opacity: 1; transform: translateX(-50%) translateY(0); }
