/* Apptonomix — sistema visual heredado de Autonomix ("Neural Architect").
   Paleta midnight + acento cian, tipografías Space Grotesk (títulos) / Inter (cuerpo). */
:root {
    --bg: #0f1019;
    --surface: #181924;
    --surface2: #1e2133;
    --border: #2a2d42;
    --cyan: #47eaed;
    --cyan-dim: rgba(71, 234, 237, 0.12);
    --orange: #ffb77d;
    --text: #e4e8f0;
    --muted: #7a8898;
    --error: #ff5c5c;
    --success: #4cdf90;
    --radius: 8px;
    --sidebar-w: 220px;
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

/* El atributo `hidden` debe ganar a las reglas display de abajo (.auth-view y
   #appView usan display:flex; sin esto anularían [hidden]{display:none}). */
[hidden] { display: none !important; }
.hidden { display: none !important; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    /* Glow ambiental: radial suave desde el centro (firma del design system). */
    background-image: radial-gradient(ellipse at 50% 0%, var(--surface2) 0%, var(--bg) 60%);
    background-attachment: fixed;
}

h1, h2, h3, .brand { font-family: var(--font-display); letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.hint { font-size: .8rem; color: var(--muted); margin: -.3rem 0 .4rem; }
.error { color: var(--error); min-height: 1.2em; margin: .4rem 0 0; font-size: .9rem; }

/* ── Auth views ──────────────────────────────────────────────────────── */
.auth-view {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}
.auth-card { width: 100%; max-width: 380px; }
.auth-card h1 { margin: 0 0 .25rem; font-size: 1.5rem; color: var(--cyan); }
.auth-card .muted { margin-top: 0; font-size: .85rem; }
.auth-card label { display: block; margin: 1rem 0 .25rem; font-size: .85rem; color: var(--muted); }
.auth-card label.row { display: flex; align-items: center; gap: .5rem; margin-top: 1rem; color: var(--text); }
.auth-card input[type=email],
.auth-card input[type=password],
.auth-card input[type=text] {
    width: 100%;
    padding: .65rem .75rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color .15s;
}
.auth-card input:focus { outline: none; border-color: var(--cyan); }
.auth-card button {
    width: 100%;
    margin-top: 1.25rem;
    padding: .7rem;
    background: var(--cyan);
    color: var(--bg);
    border: 0;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-display);
    cursor: pointer;
    transition: box-shadow .15s, filter .15s;
}
.auth-card button:hover { box-shadow: 0 0 15px var(--cyan-dim); filter: brightness(1.05); }
.codes {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    font-family: var(--font-display);
    line-height: 1.8;
    white-space: pre-wrap;
    color: var(--cyan);
}

/* ── App shell ───────────────────────────────────────────────────────── */
#appView { display: flex; min-height: 100vh; }
.sidebar {
    width: var(--sidebar-w);
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1rem;
    gap: .25rem;
}
.brand {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--cyan);
    margin-bottom: 1.5rem;
    padding: 0 .5rem;
}
.nav-item {
    text-align: left;
    padding: .6rem .75rem;
    background: transparent;
    border: 0;
    border-left: 2px solid transparent;
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--muted);
    font-size: .95rem;
    font-family: inherit;
    cursor: pointer;
    transition: color .15s, background .15s;
}
.nav-item:hover { background: rgba(255, 255, 255, .03); color: var(--text); }
.nav-item.active {
    color: var(--cyan);
    background: var(--cyan-dim);
    border-left-color: var(--cyan);
}
.logout {
    padding: .55rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--muted);
    font-family: inherit;
    cursor: pointer;
    transition: color .15s, border-color .15s;
}
.logout:hover { color: var(--text); border-color: var(--text); }
.content { flex: 1; padding: 2.5rem; }
.panel { display: none; }
.panel.active { display: block; }
.panel h2 { margin-top: 0; font-size: 1.6rem; }

/* ── Botones reutilizables ───────────────────────────────────────────────── */
.btn-primary {
    padding: .55rem 1.1rem;
    background: var(--cyan);
    color: var(--bg);
    border: 0;
    border-radius: var(--radius);
    font-size: .9rem;
    font-weight: 600;
    font-family: var(--font-display);
    cursor: pointer;
    transition: filter .15s;
    white-space: nowrap;
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:disabled { opacity: .45; cursor: default; filter: none; }

.btn-ghost {
    padding: .5rem 1rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--muted);
    font-size: .9rem;
    font-family: inherit;
    cursor: pointer;
    transition: color .15s, border-color .15s;
    white-space: nowrap;
}
.btn-ghost:hover { color: var(--text); border-color: var(--muted); }

.btn-danger {
    padding: .5rem 1rem;
    background: transparent;
    border: 1px solid var(--error);
    border-radius: var(--radius);
    color: var(--error);
    font-size: .9rem;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s;
}
.btn-danger:hover { background: rgba(255,92,92,.1); }

/* ── Kanban toolbar ──────────────────────────────────────────────────────── */
.kb-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.kb-search {
    padding: .5rem .75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: .9rem;
    font-family: inherit;
    width: 180px;
    transition: border-color .15s;
}
.kb-search:focus { outline: none; border-color: var(--cyan); }

/* ── Kanban board ────────────────────────────────────────────────────────── */
.kb-board {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    min-height: calc(100vh - 210px);
    align-items: flex-start;
}

/* ── Column ──────────────────────────────────────────────────────────────── */
.kb-col {
    flex: 0 0 272px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
}
.kb-col-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--border);
}
.kb-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.kb-col-name {
    flex: 1;
    font-size: .9rem;
    font-weight: 600;
    font-family: var(--font-display);
    color: var(--text);
    cursor: default;
    user-select: none;
}
.kb-col-name:hover { color: var(--cyan); }
.kb-col-count {
    font-size: .75rem;
    color: var(--muted);
    background: var(--bg);
    padding: .1rem .45rem;
    border-radius: 20px;
}
.kb-col-del {
    background: transparent;
    border: 0;
    color: var(--border);
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0 .15rem;
    transition: color .15s;
}
.kb-col-del:hover { color: var(--error); }

.kb-drop-zone {
    flex: 1;
    padding: .75rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    min-height: 80px;
    transition: background .15s;
}
.kb-drop-zone.drag-over { background: var(--cyan-dim); border-radius: 6px; }

.kb-add-card {
    margin: 0 .75rem .75rem;
    padding: .45rem;
    background: transparent;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    color: var(--muted);
    font-size: .82rem;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    transition: color .15s, border-color .15s;
}
.kb-add-card:hover { color: var(--cyan); border-color: var(--cyan); }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.kb-card {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .75rem;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
    user-select: none;
}
.kb-card:hover { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan-dim); }
.kb-card.dragging { opacity: .35; }
.kb-card-name { font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.kb-card-sub { font-size: .8rem; color: var(--muted); margin-bottom: .4rem; }
.kb-card-footer { display: flex; align-items: center; gap: .4rem; margin-top: .4rem; flex-wrap: wrap; }
.kb-card-date { font-size: .72rem; color: var(--muted); margin-left: auto; }

.kb-tag {
    display: inline-block;
    padding: .12rem .45rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: .72rem;
    color: var(--muted);
}
.kb-badge {
    display: inline-block;
    padding: .12rem .45rem;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 600;
}
.badge-green  { background: rgba(76,223,144,.15); color: var(--success); }
.badge-orange { background: rgba(255,183,125,.15); color: var(--orange); }
.badge-red    { background: rgba(255,92,92,.15); color: var(--error); }

/* ── Detail overlay ──────────────────────────────────────────────────────── */
.kb-detail-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 100;
    display: flex;
    justify-content: flex-end;
}
.kb-detail-overlay[hidden] { display: none !important; }
.kb-detail {
    background: var(--surface);
    border-left: 1px solid var(--border);
    width: 100%;
    max-width: 480px;
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.kb-detail-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--surface);
    z-index: 1;
}
.kb-detail-name {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 1.15rem;
    font-weight: 700;
    font-family: var(--font-display);
    width: 100%;
    padding: .2rem 0;
}
.kb-detail-name:focus { outline: none; border-bottom-color: var(--cyan); }
.kb-close {
    background: transparent;
    border: 0;
    color: var(--muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    flex-shrink: 0;
    padding: 0;
    transition: color .15s;
}
.kb-close:hover { color: var(--text); }

.kb-detail-body {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.kb-field {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    font-size: .8rem;
    color: var(--muted);
}
.kb-field input, .kb-field select, .kb-field textarea {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: .9rem;
    font-family: inherit;
    padding: .55rem .75rem;
    transition: border-color .15s;
}
.kb-field input:focus, .kb-field select:focus, .kb-field textarea:focus {
    outline: none;
    border-color: var(--cyan);
}
.kb-field select { cursor: pointer; }
.kb-field textarea { resize: vertical; }

.kb-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }

.kb-ai-section {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .75rem 1rem;
}
.kb-ai-label {
    font-size: .75rem;
    font-weight: 600;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: .05em;
    display: flex;
    align-items: center;
    margin-bottom: .5rem;
}
.kb-ai-summary {
    font-size: .85rem;
    color: var(--text);
    margin: 0;
    line-height: 1.55;
}

.kb-detail-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

.kb-timeline { margin-top: .25rem; }
.kb-timeline-title {
    font-size: .75rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .65rem;
}
.ev-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.ev-item {
    display: flex;
    justify-content: space-between;
    padding: .5rem .75rem;
    background: var(--surface2);
    border-radius: var(--radius);
    font-size: .82rem;
}
.ev-type { color: var(--text); text-transform: capitalize; }
.ev-date { color: var(--muted); font-size: .78rem; }
.ev-empty { color: var(--muted); font-size: .85rem; }

/* ── Modal ───────────────────────────────────────────────────────────────── */
.kb-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.kb-modal-overlay[hidden] { display: none !important; }
.kb-modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: .85rem;
}
.kb-modal h3 { margin: 0; font-size: 1.1rem; color: var(--cyan); }
.kb-modal label {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    font-size: .8rem;
    color: var(--muted);
}
.kb-modal input, .kb-modal select {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: .9rem;
    font-family: inherit;
    padding: .55rem .75rem;
    transition: border-color .15s;
}
.kb-modal input:focus, .kb-modal select:focus { outline: none; border-color: var(--cyan); }
.kb-modal-btns { display: flex; gap: .75rem; margin-top: .25rem; }

/* ── Password toggle ─────────────────────────────────────────────────────── */
.password-wrap { position: relative; display: flex; align-items: center; margin-top: .3rem; }
.password-wrap input { flex: 1; padding-right: 2.5rem !important; }
.password-toggle {
    position: absolute;
    right: .5rem;
    background: none !important;
    border: none !important;
    cursor: pointer;
    color: var(--muted);
    padding: .25rem !important;
    display: flex;
    align-items: center;
    width: auto !important;
    margin-top: 0 !important;
    box-shadow: none !important;
    filter: none !important;
}
.password-toggle:hover { color: var(--cyan); box-shadow: none !important; filter: none !important; }

/* ── Auth extras ─────────────────────────────────────────────────────────── */
.link-btn {
    display: block;
    width: 100%;
    background: none !important;
    border: none !important;
    color: #9baab8 !important;
    font-size: .8rem;
    cursor: pointer;
    padding: .35rem 0 !important;
    text-align: center;
    margin-top: .15rem !important;
    transition: color .15s;
    box-shadow: none !important;
    filter: none !important;
}
.link-btn:hover { color: var(--cyan) !important; box-shadow: none !important; filter: none !important; }

.success { color: var(--success); min-height: 1.2em; margin: .4rem 0 0; font-size: .9rem; }

.btn-danger-full {
    width: 100%;
    margin-top: 1rem;
    padding: .7rem;
    background: transparent;
    border: 1px solid var(--error);
    border-radius: var(--radius);
    color: var(--error);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-display);
    cursor: pointer;
    transition: background .15s;
}
.btn-danger-full:hover { background: rgba(255,92,92,.1); }

/* ── Recovery codes view ─────────────────────────────────────────────────── */
.recovery-card { max-width: 420px !important; }
.recovery-codes-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .4rem;
    margin: 1rem 0;
}
.recovery-code {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: .45rem .6rem;
    font-family: var(--font-display);
    font-size: .9rem;
    color: var(--cyan);
    text-align: center;
    letter-spacing: .04em;
}
.recovery-codes-actions { display: flex; gap: .5rem; margin-bottom: .75rem; }
.recovery-codes-actions .btn-ghost { flex: 1; }
.recovery-confirm {
    display: flex !important;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
    color: var(--muted);
    margin: .5rem 0 .75rem;
    cursor: pointer;
    width: auto !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin-top: .5rem !important;
    box-shadow: none !important;
    filter: none !important;
}

/* ── 2FA Banner ──────────────────────────────────────────────────────────── */
.twofa-banner {
    background: rgba(71,234,237,.06);
    border-bottom: 1px solid rgba(71,234,237,.18);
    padding: .6rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: .85rem;
    flex-shrink: 0;
}
.twofa-banner.hidden { display: none; }
.twofa-banner-actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.twofa-banner-btn {
    padding: .28rem .7rem;
    background: var(--cyan);
    color: var(--bg);
    border: 0;
    border-radius: var(--radius);
    font-size: .8rem;
    font-weight: 600;
    font-family: var(--font-display);
    cursor: pointer;
}
.twofa-banner-link {
    background: none;
    border: none;
    color: var(--muted);
    font-size: .78rem;
    cursor: pointer;
    padding: .25rem;
}
.twofa-banner-link:hover { color: var(--text); }
.twofa-banner-close {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 1rem;
    padding: .2rem .4rem;
    line-height: 1;
}
.twofa-banner-close:hover { color: var(--text); }

/* ── App layout (with banner) ────────────────────────────────────────────── */
#appView { display: flex; flex-direction: column; min-height: 100vh; }
.app-layout { display: flex; flex: 1; min-height: 0; }
.app-layout .sidebar { display: flex; flex-direction: column; }
.app-layout .content { flex: 1; padding: 2.5rem; overflow-y: auto; }

/* ── Account button (sidebar) ────────────────────────────────────────────── */
.account-btn {
    padding: .55rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--muted);
    font-family: inherit;
    cursor: pointer;
    transition: color .15s, border-color .15s;
    text-align: left;
    margin-top: auto;
    margin-bottom: .4rem;
}
.account-btn:hover { color: var(--text); border-color: var(--muted); }

/* ── Account modal ───────────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-overlay.hidden { display: none; }
.modal-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.modal-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--text); margin: 0; }
.modal-close {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 1.2rem;
    padding: .2rem .4rem;
    line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal-sub { font-size: .85rem; color: var(--muted); margin: 0 0 .75rem; }
.modal-label {
    display: block;
    font-size: .85rem;
    color: var(--muted);
    margin: .75rem 0 .25rem;
}
.modal-label input[type="email"],
.modal-label input[type="text"],
.modal-label input[type="password"] {
    width: 100%;
    padding: .55rem .75rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: .9rem;
    font-family: inherit;
    margin-top: .25rem;
    transition: border-color .15s;
    display: block;
}
.modal-label input:focus { outline: none; border-color: var(--cyan); }
.modal-2fa-input {
    width: 100%;
    padding: .55rem .75rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: .9rem;
    font-family: inherit;
    margin-top: .75rem;
    transition: border-color .15s;
}
.modal-2fa-input:focus { outline: none; border-color: var(--cyan); }
.modal-footer { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1rem; }
.account-email-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .6rem .75rem;
}
.account-email { flex: 1; font-size: .9rem; color: var(--text); word-break: break-all; }
.btn-test-email {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--muted);
    font-size: .78rem;
    cursor: pointer;
    padding: .3rem .6rem;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color .15s, border-color .15s;
}
.btn-test-email:hover { color: var(--text); border-color: var(--muted); }
.btn-test-email:disabled { opacity: .5; cursor: default; }
.account-actions { display: flex; flex-direction: column; gap: .4rem; }
.btn-account-action {
    width: 100%;
    text-align: left;
    padding: .65rem .75rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: .9rem;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.btn-account-action:hover { background: var(--surface2); border-color: var(--cyan); }

/* ── 2FA setup (in modal) ────────────────────────────────────────────────── */
.twofa-qr { text-align: center; margin: 1rem 0; }
.twofa-qr img { width: 180px; height: 180px; border-radius: var(--radius); background: #fff; padding: .4rem; }
.twofa-secret { font-size: .82rem; color: var(--muted); text-align: center; margin: .5rem 0 1rem; }
.twofa-secret code { color: var(--cyan); font-size: .82rem; display: block; margin-top: .3rem; word-break: break-all; }
.twofa-trust-row {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

/* ── Toast ───────────────────────────────────────────────────────────────── */
.toast-container {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    pointer-events: none;
}
.toast {
    padding: .65rem 1rem;
    border-radius: var(--radius);
    font-size: .875rem;
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .25s, transform .25s;
    pointer-events: auto;
    max-width: 280px;
}
.toast.toast-show { opacity: 1; transform: translateY(0); }
.toast.toast-success { border-color: var(--success); color: var(--success); }
.toast.toast-error { border-color: var(--error); color: var(--error); }
