/* ============================================================
   Uwaizi — Smarter Learning. Greater Future.
   Design notes:
   - Brand palette: deep green, warm gold, off-white, charcoal
   - Mobile-first; chat is the hero. WhatsApp-ish but warmer.
   - Typography: a friendly geometric pair — Plus Jakarta Sans
     for UI/headings, Inter Tight for body. Crisp, modern, African-
     friendly latin coverage. Loaded from Google Fonts.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter+Tight:wght@400;500;600&display=swap");

:root {
  /* Brand */
  --green:        #1F6B3A;
  --green-deep:   #154824;
  --green-soft:   #2d8b50;
  --gold:         #F5C518;
  --gold-soft:    #ffd84d;
  --gold-deep:    #c9a012;
  --ink:          #0f0f10;
  --ink-2:        #1a1a1d;
  --ink-3:        #2a2a2f;
  --paper:        #fafaf6;
  --paper-2:      #f1f0e9;
  --line:         #e6e4dc;

  /* Semantic */
  --bg:           var(--paper);
  --surface:      #ffffff;
  --surface-2:    var(--paper-2);
  --text:         var(--ink);
  --text-muted:   #5b5b62;
  --border:       var(--line);

  /* Status */
  --got:          #2da34d;
  --got-deep:     #1f7a39;
  --not:          #e08a1e;
  --not-deep:     #b86b0a;

  --radius:       18px;
  --radius-sm:    12px;
  --radius-lg:    26px;
  --shadow-sm:    0 1px 2px rgba(15,15,16,.06), 0 2px 6px rgba(15,15,16,.04);
  --shadow:       0 6px 24px rgba(15,15,16,.10), 0 1px 3px rgba(15,15,16,.06);
  --shadow-lg:    0 24px 48px -12px rgba(15,15,16,.25);

  --header-h:     64px;
  --nav-h:        72px;
  --safe-bottom:  env(safe-area-inset-bottom, 0px);
  --safe-top:     env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Inter Tight", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior-y: contain;
}

h1,h2,h3,h4 { font-family: "Plus Jakarta Sans", sans-serif; letter-spacing: -0.01em; margin: 0; }

button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 16px; }

/* App shell — mobile-first phone-frame on desktop */
#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 768px) {
  body {
    background:
      radial-gradient(circle at 20% 10%, rgba(245,197,24,.08), transparent 40%),
      radial-gradient(circle at 80% 80%, rgba(31,107,58,.08), transparent 40%),
      var(--paper-2);
  }
  #app { margin-top: 24px; margin-bottom: 24px; min-height: calc(100vh - 48px); border-radius: 28px; overflow: hidden; }
}

/* ----- Screens ----- */
.screen { display: none; flex-direction: column; flex: 1; min-height: 0; }
.screen.active { display: flex; }

/* ============================================================
   LOGIN SCREEN
   ============================================================ */
#screen-login {
  background:
    radial-gradient(ellipse at top, rgba(31,107,58,.16), transparent 60%),
    radial-gradient(ellipse at 80% 90%, rgba(245,197,24,.18), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
  padding: calc(var(--safe-top) + 32px) 24px 24px;
  justify-content: space-between;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.brand-mark img { width: 56px; height: 56px; border-radius: 14px; background: var(--ink); padding: 6px; }
.brand-mark .brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-mark .brand-text .name { font-family: "Plus Jakarta Sans"; font-weight: 800; font-size: 28px; letter-spacing: -0.02em; }
.brand-mark .brand-text .tag { color: var(--text-muted); font-size: 13px; margin-top: 4px; }

.login-hero { padding-top: 16px; }
.login-hero h1 {
  font-size: 34px;
  line-height: 1.1;
  font-weight: 800;
  margin-top: 28px;
}
.login-hero h1 .accent-green { color: var(--green); }
.login-hero h1 .accent-gold  { color: var(--gold-deep); }
.login-hero p { color: var(--text-muted); margin-top: 12px; font-size: 15px; max-width: 32ch; }

.feature-row { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; font-size: 12.5px; color: var(--text-muted); font-weight: 500; box-shadow: var(--shadow-sm); }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.chip:nth-child(2) .dot { background: var(--gold); }
.chip:nth-child(3) .dot { background: var(--ink); }

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
  margin-top: 28px;
}
.login-card h2 { font-size: 18px; font-weight: 700; }
.login-card p.sub { color: var(--text-muted); font-size: 13px; margin-top: 4px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.field label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.field input, .field select {
  width: 100%;
  padding: 14px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31,107,58,.18);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 20px; border-radius: var(--radius-sm);
  border: none; font-weight: 700; font-size: 15px;
  transition: transform .08s, box-shadow .15s, background .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 4px 12px rgba(31,107,58,.3); width: 100%; margin-top: 16px; }
.btn-primary:hover { background: var(--green-soft); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 4px 12px rgba(245,197,24,.4); }
.btn-gold:hover { background: var(--gold-soft); }

.login-footer-note { text-align: center; color: var(--text-muted); font-size: 12px; margin-top: 18px; }

.demo-hint {
  margin-top: 14px;
  background: linear-gradient(135deg, rgba(245,197,24,.18), rgba(31,107,58,.08));
  border: 1px dashed rgba(31,107,58,.3);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 12.5px;
  color: var(--text);
}
.demo-hint b { color: var(--green-deep); }
.demo-hint code { background: rgba(0,0,0,.06); padding: 1px 6px; border-radius: 4px; font-size: 11.5px; }

.error-msg { margin-top: 12px; padding: 10px 12px; background: #fef0f0; border: 1px solid #f5c2c2; color: #9a1f1f; border-radius: var(--radius-sm); font-size: 13px; display: none; }
.error-msg.visible { display: block; }

/* ============================================================
   HEADER (chat list + chat detail share this)
   ============================================================ */
.app-header {
  height: var(--header-h);
  padding: calc(var(--safe-top) + 8px) 14px 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.app-header .logo-mark { width: 36px; height: 36px; border-radius: 8px; padding: 4px; background: rgba(255,255,255,.04); }
.app-header h1 { font-size: 18px; font-weight: 700; flex: 1; letter-spacing: -0.01em; }
.app-header h1 small { display:block; font-size: 11px; font-weight: 500; color: rgba(255,255,255,.55); margin-top: 2px; letter-spacing: 0; }
.icon-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  color: #fff;
  border: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:hover { background: rgba(255,255,255,.12); }
.icon-btn svg { width: 20px; height: 20px; }

/* ============================================================
   CHAT LIST
   ============================================================ */
#screen-list .list-body {
  flex: 1;
  overflow-y: auto;
  /* Bottom padding clears: nav (72) + FAB (56) + breathing room (24) + safe-area */
  padding: 16px 14px calc(var(--nav-h) + 88px + var(--safe-bottom));
}

.search-bar {
  position: relative;
  margin-bottom: 12px;
}
.search-bar input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 14.5px;
}
.search-bar input:focus { outline: none; border-color: var(--green); }
.search-bar svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-muted); }

.section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 18px 4px 10px;
  display: flex; align-items: center; gap: 8px;
}
.section-title::after { content:""; flex:1; height:1px; background: var(--border); }

.chat-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  cursor: pointer;
  transition: transform .1s, box-shadow .15s, border-color .15s;
}
.chat-item:hover { box-shadow: var(--shadow); border-color: rgba(31,107,58,.2); }
.chat-item:active { transform: scale(.99); }
.chat-thumb {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0; font-weight: 700; font-size: 18px;
}
.chat-thumb.gold { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: var(--ink); }
.chat-meta { flex: 1; min-width: 0; }
.chat-meta .row1 { display: flex; align-items: baseline; gap: 8px; }
.chat-meta .title { font-weight: 700; font-size: 15px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-meta .time { font-size: 11px; color: var(--text-muted); flex-shrink: 0; }
.chat-meta .preview { color: var(--text-muted); font-size: 13px; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chat-meta .badge {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  background: rgba(31,107,58,.1); color: var(--green-deep);
}
.chat-meta .badge.notyet { background: rgba(224,138,30,.12); color: var(--not-deep); }

.empty-state { text-align: center; padding: 60px 24px; color: var(--text-muted); }
.empty-state .icon { font-size: 48px; margin-bottom: 12px; }
.empty-state h3 { color: var(--text); margin-bottom: 6px; }
.empty-state p { font-size: 14px; }

.fab {
  /* Pin to the app frame, not the scrolling list, so it never scrolls offscreen.
     Inside the centred phone-frame on desktop this stays pinned to the frame's
     bottom-right because the parent #app is position: relative. */
  position: fixed;
  right: max(18px, calc((100vw - 480px) / 2 + 18px));
  bottom: calc(var(--nav-h) + 20px + var(--safe-bottom));
  width: 56px; height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 24px rgba(31,107,58,.4);
  display: flex; align-items: center; justify-content: center;
  z-index: 9; /* above bottom-nav border, below toast */
  transition: transform .12s, box-shadow .15s;
}
/* On screens narrower than the 480px frame, fixed-right is just 18px from edge */
@media (max-width: 480px) {
  .fab { right: 18px; }
}
/* The FAB lives inside #screen-list, so when that screen is hidden, hide the FAB too.
   Without this, position: fixed would let it bleed onto other screens. */
#screen-list:not(.active) .fab { display: none; }
.fab:hover { transform: scale(1.05); box-shadow: 0 12px 32px rgba(31,107,58,.5); }
.fab:active { transform: scale(.96); }
.fab svg { width: 26px; height: 26px; }

/* ============================================================
   CHAT DETAIL
   ============================================================ */
#screen-chat .chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px 16px;
  background:
    radial-gradient(ellipse at top, rgba(245,197,24,.05), transparent 60%),
    var(--paper);
}

.chat-title-bar {
  background: var(--ink-2);
  color: #fff;
  padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
}
.chat-title-bar .editable {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 4px 6px;
  border-radius: 6px;
  outline: none;
}
.chat-title-bar .editable:focus { background: rgba(255,255,255,.06); }
.chat-title-bar .lang-pill { background: var(--gold); color: var(--ink); font-weight: 700; font-size: 10.5px; padding: 3px 8px; border-radius: 999px; letter-spacing: 0.04em; text-transform: uppercase; }

.msg-row { display: flex; margin-bottom: 14px; align-items: flex-end; gap: 8px; }
.msg-row.from-user { justify-content: flex-end; }
.msg-row.from-ai { justify-content: flex-start; }

.avatar {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--ink); padding: 3px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: contain; }

.bubble {
  max-width: 78%;
  padding: 11px 14px;
  border-radius: 18px;
  font-size: 14.5px;
  line-height: 1.5;
  position: relative;
  word-wrap: break-word;
}
.from-user .bubble {
  background: var(--green);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.from-ai .bubble {
  background: var(--surface);
  color: var(--text);
  border-bottom-left-radius: 6px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.bubble.image { padding: 4px; background: transparent !important; box-shadow: none; border: none; }
.bubble.image img { max-width: 100%; border-radius: 14px; display: block; box-shadow: var(--shadow); }
.bubble .ts { font-size: 10.5px; color: var(--text-muted); margin-top: 4px; display: block; opacity: 0.7; }
.from-user .bubble .ts { color: rgba(255,255,255,.75); }

.bubble.thinking { display: inline-flex; gap: 4px; padding: 14px 18px; }
.bubble.thinking span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); animation: blink 1.2s infinite; }
.bubble.thinking span:nth-child(2) { animation-delay: .15s; }
.bubble.thinking span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%,80%,100% { opacity: .25; } 40% { opacity: 1; } }

.action-row { display: flex; gap: 8px; margin: 4px 0 8px 38px; flex-wrap: wrap; }
.act-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid;
  background: var(--surface);
  font-size: 13px;
  font-weight: 700;
  transition: transform .08s, background .15s;
}
.act-btn:active { transform: scale(.96); }
.act-btn.got     { color: var(--got-deep);  border-color: var(--got);  }
.act-btn.got:hover { background: var(--got); color: #fff; }
.act-btn.notyet  { color: var(--not-deep);  border-color: var(--not);  }
.act-btn.notyet:hover { background: var(--not); color: #fff; }
.act-btn.play    { color: var(--text-muted);  border-color: var(--border); padding: 8px 12px; }
.act-btn.play:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.act-btn.play.playing { color: var(--gold-deep); border-color: var(--gold); background: rgba(245,197,24,.1); }
.act-btn svg { width: 14px; height: 14px; }
.act-btn.disabled { opacity: 0.45; pointer-events: none; }

/* Composer */
.composer {
  position: sticky;
  bottom: 0;
  padding: 10px 12px calc(10px + var(--safe-bottom));
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex; gap: 8px;
  align-items: flex-end;
}
.composer textarea {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 22px;
  padding: 11px 14px;
  resize: none;
  max-height: 100px;
  font-size: 15px;
  background: var(--paper);
  line-height: 1.4;
}
.composer textarea:focus { outline: none; border-color: var(--green); background: #fff; }
.composer .send-btn, .composer .cam-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--green);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(31,107,58,.3);
}
.composer .cam-btn { background: var(--gold); color: var(--ink); box-shadow: 0 2px 8px rgba(245,197,24,.4); }
.composer .send-btn:hover { background: var(--green-soft); }
.composer .cam-btn:hover { background: var(--gold-soft); }
.composer .send-btn:disabled { background: #cfcfd0; box-shadow: none; }
.composer button svg { width: 20px; height: 20px; }

/* Hide actual file input */
input[type="file"].hidden-file { display: none; }

/* ============================================================
   SETTINGS / YOU SCREENS
   ============================================================ */
#screen-settings .body, #screen-you .body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px calc(var(--nav-h) + 24px);
}

.profile-card {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.profile-card::after {
  content:"";
  position: absolute; right: -40px; top: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(245,197,24,.5), transparent 70%);
  border-radius: 50%;
}
.profile-card .row { display: flex; gap: 14px; align-items: center; position: relative; z-index: 1; }
.profile-card .ava {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: var(--gold);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800;
  font-family: "Plus Jakarta Sans";
}
.profile-card h2 { font-size: 22px; font-weight: 800; }
.profile-card .meta { opacity: 0.85; font-size: 13.5px; margin-top: 2px; }

.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}
.stat .num { font-family: "Plus Jakarta Sans"; font-weight: 800; font-size: 28px; line-height: 1; }
.stat .num.green { color: var(--green); }
.stat .num.gold  { color: var(--gold-deep); }
.stat .num.ink   { color: var(--ink); }
.stat .label { font-size: 12px; color: var(--text-muted); margin-top: 6px; font-weight: 500; }

.subject-bars { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-top: 16px; }
.subject-bars h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.bar-row { margin-bottom: 12px; }
.bar-row:last-child { margin-bottom: 0; }
.bar-row .lbl { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 4px; }
.bar-row .lbl b { font-weight: 600; }
.bar-row .lbl span { color: var(--text-muted); }
.bar-track { height: 8px; background: var(--paper-2); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--green), var(--green-soft)); border-radius: 999px; transition: width .6s ease; }

.settings-section { margin-top: 18px; }
.settings-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 10px;
}
.settings-row .ico { width: 36px; height: 36px; border-radius: 10px; background: var(--paper-2); display: flex; align-items: center; justify-content: center; color: var(--green); flex-shrink: 0; }
.settings-row .ico svg { width: 18px; height: 18px; }
.settings-row .grow { flex: 1; min-width: 0; }
.settings-row .grow b { font-size: 14.5px; font-weight: 600; display: block; }
.settings-row .grow span { font-size: 12.5px; color: var(--text-muted); }
.settings-row select { padding: 8px 10px; border-radius: 8px; border: 1.5px solid var(--border); background: var(--surface); font-size: 13px; }
.settings-row .toggle { position: relative; width: 44px; height: 26px; background: var(--border); border-radius: 999px; cursor: pointer; transition: background .2s; flex-shrink: 0; }
.settings-row .toggle::after { content:""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; box-shadow: var(--shadow-sm); transition: transform .2s; }
.settings-row .toggle.on { background: var(--green); }
.settings-row .toggle.on::after { transform: translateX(18px); }

.danger { color: #c43232; }
.danger .ico { color: #c43232; background: #fef0f0; }

/* ============================================================
   BOTTOM NAV
   ============================================================ */
.bottom-nav {
  position: sticky;
  bottom: 0;
  height: calc(var(--nav-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 8;
}
.nav-btn {
  flex: 1;
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 8px 4px;
  position: relative;
}
.nav-btn svg { width: 22px; height: 22px; }
.nav-btn.active { color: var(--green); }
.nav-btn.active::before {
  content:"";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 30px; height: 3px;
  background: var(--green);
  border-radius: 0 0 4px 4px;
}

/* ============================================================
   MISC
   ============================================================ */
.toast {
  position: fixed;
  bottom: calc(var(--nav-h) + 24px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  box-shadow: var(--shadow-lg);
  z-index: 50;
  opacity: 0;
  transition: transform .25s, opacity .25s;
  pointer-events: none;
  max-width: 90%;
  text-align: center;
}
.toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }

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