/* May Finder AI — design tokens.
   Same system as May AI / May OS (near-black layers, system SF type, grey bubbles, pill buttons, serif wordmark).
   Finder's accent is turquoise where May OS uses gold and May AI uses pink. */
:root {
  /* surfaces (May AI) */
  --bg: #0a0a0a;
  --side: #111111;
  --comp: #141414;
  --raise: #1c1c1e;
  --btn: #2a2a2c;
  --hover: #3a3a3c;
  --bubble: #3a3a3c;
  --bubble-user: #3b3b3e;
  --edge: #212327;
  --edge-2: #2c2e33;
  /* type */
  --ink: #e8e8ea;
  --ink2: #c5c5c8;
  --muted: #8e8e93;
  --cream: #f7eee3;
  /* Finder accent — turquoise */
  --accent: #3fd9cc;
  --accent-hi: #7beee4;
  --accent-lo: #13998d;
  --accent-ink: #032220;
  --accent-soft: rgba(63, 217, 204, .12);
  --accent-line: rgba(63, 217, 204, .38);
  --ok: #57d18a;
  --bad: #ff7a7a;

  /* older names still used around the app → mapped onto the system above */
  --black: var(--bg);
  --char-1: var(--comp);
  --char-2: var(--btn);
  --char-3: var(--hover);
  --line: var(--edge-2);
  --line-soft: var(--edge);
  --cream-dim: var(--ink2);
  --mute: var(--muted);
  --gold: var(--accent);
  --gold-bright: var(--accent-hi);
  --gold-ink: var(--accent-ink);

  --radius: 18px;
  --radius-sm: 12px;
  --font: -apple-system, system-ui, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Inter, "Segoe UI", sans-serif;
  --font-display: -apple-system, system-ui, "SF Pro Display", "Helvetica Neue", Inter, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); letter-spacing: -0.011em; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; letter-spacing: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Brand lockup: app icon + serif wordmark (assets/brand/*.svg) */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-icon { width: 30px; height: 30px; border-radius: 8px; display: block; }
.brand-word { height: 15px; width: auto; display: block; }
.brand.stack { flex-direction: column; gap: 10px; }
.brand.stack .brand-icon { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04); }
.brand.stack .brand-word { height: 13px; }

/* Buttons — May AI pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: var(--btn); color: var(--ink); border-radius: 999px; padding: 10px 18px; font-size: 14px; font-weight: 500; text-decoration: none; transition: background .15s, transform .1s, color .15s; }
.btn:hover { background: var(--hover); }
.btn:active { transform: scale(.98); }
.btn.gold, .btn.accent { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn.gold:hover, .btn.accent:hover { background: var(--accent-hi); }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--edge-2); }
.btn.ghost:hover { background: var(--btn); }
.btn.white { background: var(--ink); color: #0a0a0a; font-weight: 600; }
.btn.white:hover { background: #fff; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }

.icon-round { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--edge); background: transparent; color: var(--ink); display: grid; place-items: center; transition: background .15s; }
.icon-round:hover { background: var(--btn); }

.eyebrow { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; border: 1px solid var(--edge); background: var(--comp); color: var(--ink2); padding: 4px 12px; font-size: 12px; }

/* Account chip */
.acct-chip { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 8px 10px; border-radius: 14px; min-width: 0; }
.acct-chip:hover { background: var(--btn); }
.acct-ava { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.acct-name { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.acct-go { font-size: 12px; color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: #0a0a0a; padding: 11px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; opacity: 0; transition: opacity .2s, transform .2s; z-index: 99; pointer-events: none; max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--bad); }
