/* Financeiro Ops — tema escuro com azul claro + preto */

:root {
  --bg: #070a0f;
  --bg-elevated: #0d1219;
  --panel: #111820;
  --panel-hover: #161f2a;
  --text: #e9f1fa;
  --muted: #8aa3b8;
  --accent: #7dd3fc;
  --accent-dim: #38bdf8;
  --accent-glow: rgba(125, 211, 252, 0.22);
  --danger: #f87171;
  --warn: #fcd34d;
  --border: #1e2a3a;
  --border-strong: #2a3d52;
  --input-bg: #0a1018;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --focus-ring: 0 0 0 3px var(--accent-glow);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

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

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 0.9375rem;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(56, 189, 248, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(125, 211, 252, 0.04), transparent);
  color: var(--text);
  line-height: 1.55;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  padding-bottom: var(--safe-bottom);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  overflow-x: clip;
}

.shell {
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ——— Topbar ——— */
.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.65rem clamp(0.85rem, 3vw, 1.35rem);
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-elevated) 100%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  padding-top: calc(0.65rem + var(--safe-top));
  margin-top: calc(-1 * var(--safe-top));
  z-index: 50;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.brand {
  font-weight: 700;
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  letter-spacing: 0.03em;
  color: var(--text);
  flex-shrink: 0;
}

.nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0.2rem 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
  mask-image: linear-gradient(to right, transparent, #000 12px, #000 calc(100% - 12px), transparent);
}

.nav::-webkit-scrollbar {
  height: 4px;
}

.nav::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav a:hover {
  color: var(--accent);
  background: rgba(125, 211, 252, 0.08);
}

.nav a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  color: var(--accent);
}

/* ——— Main ——— */
.main {
  padding: clamp(1rem, 4vw, 1.5rem);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
  min-width: 0;
}

.main > h1,
.main h1.page-title {
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 700;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.main > p:first-of-type,
.main .lead {
  margin-top: 0;
}

.muted {
  color: var(--muted);
  font-size: 0.875rem;
}

.error {
  color: var(--danger);
  font-weight: 500;
}

.hint {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* ——— Grid & cards ——— */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: clamp(0.75rem, 2vw, 1rem);
  margin-top: 1rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(1rem, 3vw, 1.15rem);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card .val {
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

/* ——— Tables ——— */
.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin-top: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--panel);
  touch-action: pan-x pan-y;
}

table.data {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

table.data th,
table.data td {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

table.data tr:last-child td {
  border-bottom: none;
}

table.data th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--bg-elevated);
}

table.data tbody tr {
  transition: background 0.12s ease;
}

table.data tbody tr:hover {
  background: var(--panel-hover);
}

/* ——— Badges ——— */
.badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  background: var(--bg-elevated);
  color: var(--muted);
  border: 1px solid var(--border);
}

.badge.ok {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent);
  border-color: rgba(125, 211, 252, 0.25);
}

.badge.warn {
  background: rgba(252, 211, 77, 0.12);
  color: var(--warn);
  border-color: rgba(252, 211, 77, 0.25);
}

/* ——— Forms ——— */
form.compact label {
  display: block;
  margin-top: 0.85rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
}

form.compact label:first-of-type {
  margin-top: 0;
}

form.compact input,
form.compact select,
form.compact textarea {
  width: 100%;
  max-width: 420px;
  margin-top: 0.35rem;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

form.compact input:focus-visible,
form.compact select:focus-visible,
form.compact textarea:focus-visible {
  outline: none;
  border-color: var(--accent-dim);
  box-shadow: var(--focus-ring);
}

form.compact button {
  margin-top: 1.1rem;
  min-height: 44px;
  padding: 0.6rem 1.15rem;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dim) 100%);
  color: #04202e;
  font-weight: 700;
  font-family: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--accent-glow);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

form.compact button:hover {
  filter: brightness(1.05);
  box-shadow: 0 4px 14px var(--accent-glow);
}

form.compact button:active {
  transform: translateY(1px);
}

form.compact button:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring), 0 2px 8px var(--accent-glow);
}

form.compact button.secondary {
  background: var(--panel-hover);
  color: var(--text);
  box-shadow: none;
  border: 1px solid var(--border-strong);
}

form.compact button.secondary:hover {
  border-color: var(--muted);
  filter: none;
}

/* ——— Login ——— */
.login-page {
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1.25rem, var(--safe-top)) 1.25rem 1.25rem;
  background:
    radial-gradient(ellipse 100% 80% at 50% -30%, rgba(125, 211, 252, 0.18), transparent 50%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(56, 189, 248, 0.08), transparent),
    var(--bg);
}

.login-card {
  width: 100%;
  max-width: 400px;
  padding: clamp(1.5rem, 5vw, 2rem);
  background: var(--panel);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(125, 211, 252, 0.06);
}

.login-card h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.25rem, 4vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.login-card input {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  min-height: 44px;
}

.login-card input:focus-visible {
  outline: none;
  border-color: var(--accent-dim);
  box-shadow: var(--focus-ring);
}

.login-card button[type="submit"],
.login-card .btn-primary {
  width: 100%;
  margin-top: 1.25rem;
  min-height: 48px;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dim) 100%);
  color: #04202e;
  font-weight: 700;
  font-family: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
  box-shadow: 0 2px 12px var(--accent-glow);
}

.login-card button[type="submit"]:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring), 0 2px 12px var(--accent-glow);
}

/* ——— Timeline ——— */
.timeline {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.timeline li {
  display: flex;
  gap: 0.85rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  align-items: flex-start;
}

.timeline li:last-child {
  border-bottom: none;
}

.timeline .e {
  font-size: 1.15rem;
  flex-shrink: 0;
  line-height: 1.2;
}

/* ——— Code / pre (auditoria, logs) ——— */
pre,
code {
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 0.8125rem;
}

pre {
  overflow-x: auto;
  padding: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  -webkit-overflow-scrolling: touch;
}

/* ——— Links in main content (nav is outside .main) ——— */
.main a {
  color: var(--accent-dim);
  text-decoration: none;
  font-weight: 500;
}

.main a:hover {
  text-decoration: underline;
  color: var(--accent);
}

.main a:focus-visible {
  outline: none;
  border-radius: 2px;
  box-shadow: var(--focus-ring);
}

/* ——— Forms em cards sem .compact (ex.: upload comprovantes) ——— */
.card form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.card form select,
.card form textarea {
  width: 100%;
  max-width: 420px;
  margin-top: 0.35rem;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9375rem;
}

.card form input:focus-visible,
.card form select:focus-visible,
.card form textarea:focus-visible {
  outline: none;
  border-color: var(--accent-dim);
  box-shadow: var(--focus-ring);
}

.card form label {
  display: block;
  margin-top: 0.85rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
}

.card form button[type="submit"],
.card form button[type="button"] {
  margin-top: 1rem;
  margin-right: 0.5rem;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dim) 100%);
  color: #04202e;
}

.card form button.secondary,
.card button.secondary {
  background: var(--panel-hover);
  color: var(--text);
  border-color: var(--border-strong);
}

/* Campos soltos no card (ex.: Evolution — sem <form>) */
.card > label {
  display: block;
  margin-top: 0.85rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
}

.card > input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.card > select,
.card > textarea {
  width: 100%;
  max-width: 420px;
  margin-top: 0.35rem;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9375rem;
}

.card > input:focus-visible,
.card > select:focus-visible,
.card > textarea:focus-visible {
  outline: none;
  border-color: var(--accent-dim);
  box-shadow: var(--focus-ring);
}

/* Botões de ação dentro de card, fora de form (ex.: painel comprovantes) */
.card > button[type="button"]:not(.secondary):not(.badge) {
  margin-top: 0.5rem;
  margin-right: 0.5rem;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dim) 100%);
  color: #04202e;
}

/* ——— Mobile / touch ——— */
@media (max-width: 640px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .brand {
    text-align: center;
  }

  .nav {
    justify-content: flex-start;
    padding-bottom: 0.35rem;
    mask-image: none;
  }

  .nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  form.compact input,
  form.compact select,
  form.compact textarea {
    max-width: 100%;
  }

  .card form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
  .card form select,
  .card form textarea,
  .card > input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
  .card > select,
  .card > textarea {
    max-width: 100%;
  }

  table.data {
    font-size: 0.75rem;
  }

  table.data th,
  table.data td {
    padding: 0.5rem 0.45rem;
  }

  pre {
    font-size: 0.75rem;
    padding: 0.75rem;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .card > button[type="button"]:not(.secondary):not(.badge),
  .card form button[type="submit"],
  .card form button[type="button"] {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
  }
}

@media (hover: none) and (pointer: coarse) {
  .nav a:active {
    color: var(--accent);
    background: rgba(125, 211, 252, 0.12);
  }
}

/* ——— Página cliente (layout em colunas) ——— */
.cliente-page {
  max-width: 1200px;
  margin: 0 auto;
}

.cliente-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.cliente-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
}

.cliente-head h1 {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.cliente-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 960px) {
  .cliente-grid {
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
  }
}

.cliente-block-title {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.cliente-block-desc {
  margin: -0.35rem 0 0.75rem;
  font-size: 0.8125rem;
}

.cliente-balances {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cliente-balance {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.cliente-balance-ccy {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-dim);
}

.cliente-balance-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-align: right;
  word-break: break-all;
}

.cliente-page .cliente-aside form.compact input,
.cliente-page .cliente-aside form.compact select,
.cliente-page .cliente-aside form.compact textarea {
  max-width: 100%;
}

.cliente-main-panel {
  min-width: 0;
}

@media (max-width: 959px) {
  .cliente-main-panel {
    margin-top: 0.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-strong);
  }
}

.cliente-cambio-callout {
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(125, 211, 252, 0.28);
  background: rgba(56, 189, 248, 0.06);
  font-size: 0.875rem;
  line-height: 1.5;
}

.cliente-cambio-callout strong {
  color: var(--accent-dim);
}

.cliente-cambio-callout .btn-cambio {
  display: inline-block;
  margin-top: 0.65rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.8125rem;
  text-decoration: none;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dim) 100%);
  color: #04202e;
  box-shadow: 0 2px 8px var(--accent-glow);
}

.cliente-cambio-callout .btn-cambio:hover {
  filter: brightness(1.06);
  text-decoration: none;
}

.cliente-cambio-callout ul {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

/* Histórico: fluxo com o documento (sem caixa com scroll próprio). */
.cliente-timeline {
  margin-top: 0.35rem;
}

.timeline.timeline--cliente {
  margin-top: 0;
}

.timeline.timeline--cliente li {
  padding: 0.75rem 0;
}

.timeline.timeline--cliente .cliente-tl-kind {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.timeline.timeline--cliente .cliente-tl-time {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.timeline.timeline--cliente .cliente-tl-body {
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.45;
}

/* ——— Toasts (feedback ao salvar) ——— */
.toast-stack {
  position: fixed;
  z-index: 10000;
  bottom: calc(1rem + var(--safe-bottom));
  right: max(1rem, env(safe-area-inset-right, 0px));
  left: auto;
  width: min(calc(100vw - 2rem), 22rem);
  max-height: min(70vh, 28rem);
  overflow: hidden;
  display: flex;
  flex-direction: column-reverse;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.85rem 0.65rem 0.85rem 0.85rem;
  border-radius: var(--radius-md);
  background: var(--panel);
  border: 1px solid var(--border-strong);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  opacity: 0;
  transform: translateY(0.5rem) scale(0.98);
  transition:
    opacity 0.28s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.toast--in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast--out {
  opacity: 0;
  transform: translateY(0.35rem) scale(0.98);
}

.toast-inner {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-width: 0;
  flex: 1;
}

.toast-icon {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
  margin-top: 0.05rem;
}

.toast--success .toast-icon {
  background: rgba(34, 197, 94, 0.22);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.toast--error .toast-icon {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.toast--info .toast-icon {
  background: rgba(125, 211, 252, 0.12);
  color: var(--accent-dim);
  border: 1px solid rgba(125, 211, 252, 0.28);
}

.toast--success {
  border-left: 3px solid #22c55e;
}

.toast--error {
  border-left: 3px solid #ef4444;
}

.toast--info {
  border-left: 3px solid var(--accent-dim);
}

.toast-msg {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text);
  word-break: break-word;
}

.toast-close {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  margin: -0.2rem -0.15rem 0 0;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background 0.15s ease;
}

.toast-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.toast-close:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

@media (prefers-reduced-motion: reduce) {
  .toast {
    transition-duration: 0.01ms;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
