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

/* Loading spinner — three-dot bounce animation */
.spinner { display: flex; gap: 5px; }
.sdot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: sdot 1.4s ease-in-out infinite; }
.sdot:nth-child(2) { animation-delay: .15s; }
.sdot:nth-child(3) { animation-delay: .3s; }
@keyframes sdot { 0%,80%,100%{opacity:.15;transform:scale(.8);} 40%{opacity:1;transform:scale(1);} }

/* Token usage badge */
.token-badge {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text3);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  margin-top: 8px;
  font-family: 'Inter', monospace;
}
.token-badge strong { color: var(--text); }
.tok-label { color: var(--text3); }
.tok-cache { color: #4ade80; }

/* API key strip — shared across all tools */
.key-wrap { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.key-label {
  font-size: 11px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.key-dot,
.key-status {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text3);
  transition: background 0.2s;
  flex-shrink: 0;
}
.key-dot.ok,
.key-status.ok { background: var(--green, var(--success, #15803d)); }

.key-input {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: 6px;
  color: var(--text2);
  padding: 5px 10px;
  width: 260px;
  outline: none;
  transition: border-color 0.2s;
}
.key-input:focus { border-color: var(--accent); }
.key-input::placeholder { color: var(--text3); font-weight: 400; }
