/* ==========================================================================
   Antigravity CLI Web Interface - Full Standalone Design System (ChatGPT Edition)
   ========================================================================== */

:root {
  --bg-main: #ffffff;
  --bg-sidebar: #f9f9f9;
  --bg-surface: #f4f4f4;
  --bg-hover: #ebebeb;
  --border: #e3e3e3;
  --border-focus: #b4b4b4;
  --text-primary: #0d0d0d;
  --text-secondary: #5d5d5d;
  --text-tertiary: #8e8e8e;
  --accent: #10a37f;
  --code-bg: #2d2d2d;
  --sidebar-width: 260px;
}

html.dark {
  --bg-main: #212121;
  --bg-sidebar: #171717;
  --bg-surface: #2f2f2f;
  --bg-hover: #383838;
  --border: #424242;
  --border-focus: #676767;
  --text-primary: #ececec;
  --text-secondary: #b4b4b4;
  --text-tertiary: #8e8e8e;
  --accent: #10a37f;
  --code-bg: #1e1e1e;
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  display: flex;
  background-color: var(--bg-main);
  color: var(--text-primary);
}

button {
  background: transparent;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

input, textarea, select {
  font: inherit;
  color: inherit;
  background: transparent;
}

/* Colors */
.bg-main { background-color: var(--bg-main); }
.bg-sidebar { background-color: var(--bg-sidebar); }
.bg-surface { background-color: var(--bg-surface); }
.hover\:bg-hover:hover { background-color: var(--bg-hover); }
.hover\:bg-surface:hover { background-color: var(--bg-surface); }
.hover\:bg-neutral-200:hover { background-color: #e5e5e5; }
.hover\:bg-red-500\/30:hover { background-color: rgba(239, 68, 68, 0.3); }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-accent { color: var(--accent); }
.hover\:text-primary:hover { color: var(--text-primary); }
.hover\:text-red-400:hover { color: #f87171; }

.border-border { border-color: var(--border); }
.border-border-focus { border-color: var(--border-focus); }
.border-border\/40 { border-color: rgba(128, 128, 128, 0.2); }
.border-border\/60 { border-color: rgba(128, 128, 128, 0.35); }
.border-border\/80 { border-color: rgba(128, 128, 128, 0.5); }
.border-transparent { border-color: transparent; }
.border-accent { border-color: var(--accent); }

.text-white { color: #ffffff; }
.text-black { color: #000000; }
.bg-white { background-color: #ffffff; }
.bg-black\/60 { background-color: rgba(0, 0, 0, 0.6); }
.bg-black\/90 { background-color: rgba(0, 0, 0, 0.9); }
.bg-accent\/20 { background-color: rgba(16, 163, 127, 0.2); }
.bg-surface\/80 { background-color: var(--bg-surface); }
.bg-surface\/90 { background-color: var(--bg-surface); }
.bg-red-500\/15 { background-color: rgba(239, 68, 68, 0.15); }
.bg-red-500\/20 { background-color: rgba(239, 68, 68, 0.2); }
.border-red-500\/30 { border-color: rgba(239, 68, 68, 0.3); }
.text-red-400 { color: #f87171; }
.text-emerald-400 { color: #34d399; }
.bg-emerald-400 { background-color: #34d399; }
.bg-emerald-500 { background-color: #10a37f; }
.hover\:bg-emerald-600:hover { background-color: #0e8a6c; }
.text-blue-400 { color: #60a5fa; }
.text-amber-400 { color: #fbbf24; }
.text-purple-400 { color: #c084fc; }

/* Layout & Flex */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.right-3 { right: 0.75rem; }
.top-0 { top: 0; }
.top-full { top: 100%; }
.bottom-32 { bottom: 8rem; }
.right-8 { right: 2rem; }
.-top-12 { top: -3rem; }

.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-50 { z-index: 50; }
.hidden { display: none !important; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.h-screen { height: 100vh; }
.min-w-0 { min-width: 0; }
.min-h-\[50vh\] { min-height: 50vh; }
.max-w-3xl { max-width: 48rem; }
.max-w-xl { max-width: 36rem; }
.max-w-md { max-width: 28rem; }
.max-w-sm { max-width: 24rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-\[140px\] { max-width: 140px; }
.max-h-48 { max-height: 12rem; }
.max-h-\[85vh\] { max-height: 85vh; }
.max-h-\[90vh\] { max-height: 90vh; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-auto { margin-top: auto; margin-bottom: auto; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.select-none { user-select: none; }
.pointer-events-none { pointer-events: none; }

/* Dimensions */
.w-1\.5 { width: 0.375rem; }
.h-1\.5 { height: 0.375rem; }
.w-3 { width: 0.75rem; }
.h-3 { height: 0.75rem; }
.w-3\.5 { width: 0.875rem; }
.h-3\.5 { height: 0.875rem; }
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-7 { width: 1.75rem; }
.h-7 { height: 1.75rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.w-14 { width: 3.5rem; }
.h-14 { height: 3.5rem; }
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
.w-36 { width: 9rem; }
.w-64 { width: 16rem; }

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 640px) {
  .sm\:flex { display: flex !important; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (min-width: 768px) {
  .md\:flex { display: flex !important; }
}
@media (min-width: 1024px) {
  .lg\:flex { display: flex !important; }
}

/* Spacing */
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-3\.5 { gap: 0.875rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.space-y-0\.5 > * + * { margin-top: 0.125rem; }
.space-y-4 > * + * { margin-top: 1rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-2\.5 { padding: 0.625rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-12 { padding: 3rem; }

.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }

.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: 1rem; }
.pb-1 { padding-bottom: 0.25rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-4 { padding-bottom: 1rem; }
.pl-9 { padding-left: 2.25rem; }
.pr-3 { padding-right: 0.75rem; }
.pr-10 { padding-right: 2.5rem; }

.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-1\.5 { margin-top: 0.375rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-auto { margin-left: auto; }

/* Borders & Rounded */
.border { border: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }
.border-t { border-top: 1px solid var(--border); }
.border-r { border-right: 1px solid var(--border); }
.border-2 { border-width: 2px; }
.border-dashed { border-style: dashed; }

.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

/* Typography */
.text-\[10px\] { font-size: 10px; line-height: 14px; }
.text-\[11px\] { font-size: 11px; line-height: 15px; }
.text-xs { font-size: 12px; line-height: 16px; }
.text-sm { font-size: 14px; line-height: 20px; }
.text-base { font-size: 16px; line-height: 24px; }
.text-xl { font-size: 20px; line-height: 28px; }
.text-2xl { font-size: 24px; line-height: 32px; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leading-relaxed { line-height: 1.625; }

/* Effects */
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.backdrop-blur { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 30;
}

.sidebar.collapsed {
  margin-left: calc(-1 * var(--sidebar-width));
  opacity: 0;
  pointer-events: none;
}

/* History */
.history-group-header {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  padding: 8px 10px 4px 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.15s ease;
  position: relative;
  text-decoration: none;
}

.history-item:hover {
  background-color: var(--bg-hover);
}

.history-item.active {
  background-color: var(--bg-hover);
  font-weight: 500;
}

.history-item .item-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.history-item .item-actions {
  display: none;
  align-items: center;
  gap: 4px;
}

.history-item:hover .item-actions {
  display: flex;
}

/* Main & Header */
main {
  flex: 1;
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-main);
}

header {
  height: 56px;
  min-height: 56px;
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-main);
  z-index: 20;
}

/* Dropdown Menus */
.dropdown-menu {
  animation: fadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
}

.dropdown-item, .effort-item, .mode-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 12px;
  text-align: left;
  color: var(--text-primary);
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.1s;
}

.dropdown-item:hover, .effort-item:hover, .mode-item:hover {
  background-color: var(--bg-hover);
}

.dropdown-item.active, .effort-item.active, .mode-item.active {
  background-color: var(--bg-hover);
  font-weight: 600;
  color: var(--accent);
}

/* Prompt Starter Cards */
.prompt-starter-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: left;
}

.prompt-starter-card:hover {
  background-color: var(--bg-hover);
  border-color: var(--border-focus);
  transform: translateY(-1px);
}

/* Messages Container */
#messagesContainer {
  flex: 1;
  overflow-y: auto;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
}

#messagesList {
  max-width: 768px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.message-row {
  display: flex;
  gap: 14px;
  width: 100%;
  animation: fadeIn 0.2s ease;
}

.message-user {
  justify-content: flex-end;
}

.message-user .message-bubble {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border-radius: 20px;
  padding: 12px 18px;
  max-width: 82%;
  border: 1px solid var(--border);
}

.message-assistant {
  justify-content: flex-start;
}

.message-assistant .avatar-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.message-assistant .message-content-wrap {
  flex: 1;
  min-width: 0;
}

/* Attachment Chips */
.attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 12px;
  color: var(--text-primary);
  position: relative;
  max-width: 240px;
}

.attachment-chip img.thumb {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
}

.attachment-chip .name-wrap {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.attachment-chip .filename {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.attachment-chip .filesize {
  font-size: 10px;
  color: var(--text-tertiary);
}

.attachment-chip .btn-remove {
  padding: 2px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-tertiary);
  transition: color 0.15s;
  background: transparent;
  border: none;
}

.attachment-chip .btn-remove:hover {
  color: #ef4444;
}

/* Media in User Message */
.user-media-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.user-media-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.user-media-img:hover {
  transform: scale(1.02);
}

/* Input Area (Bottom Floating) */
#inputBoxContainer {
  width: 100%;
  max-width: 768px;
  margin: 0 auto;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
  transition: border-color 0.15s, box-shadow 0.15s;
}

#inputBoxContainer:focus-within {
  border-color: var(--border-focus);
}

#chatTextarea {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 14.5px;
  line-height: 1.5;
  resize: none;
}

/* Markdown typography */
.prose {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-primary);
  word-break: break-word;
}

.prose p {
  margin-bottom: 0.9em;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1.2em;
  margin-bottom: 0.5em;
}

.prose ul, .prose ol {
  padding-left: 1.5em;
  margin-bottom: 0.9em;
}

.prose li {
  margin-bottom: 0.3em;
}

.prose blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  color: var(--text-secondary);
  margin: 1em 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 13.5px;
}

.prose th, .prose td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
}

.prose th {
  background-color: var(--bg-surface);
  font-weight: 600;
}

.prose a {
  color: #3b82f6;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Code block container */
.code-block-container {
  margin: 1em 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background-color: var(--code-bg);
}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px;
  background-color: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11.5px;
  font-family: 'JetBrains Mono', monospace;
  color: #a0a0a0;
}

.code-copy-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  color: #a0a0a0;
  cursor: pointer;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.15s;
}

.code-copy-btn:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

.code-block-container pre {
  margin: 0;
  padding: 14px;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.5;
}

code:not(pre code) {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  padding: 2px 5px;
  border-radius: 4px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  color: #f43f5e;
}

/* Thinking accordion */
.thinking-accordion {
  border: 1px solid var(--border);
  border-radius: 12px;
  background-color: var(--bg-surface);
  margin-bottom: 12px;
  overflow: hidden;
}

.thinking-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  user-select: none;
  transition: background 0.15s;
}

.thinking-header:hover {
  background-color: var(--bg-hover);
}

.thinking-body {
  padding: 10px 14px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  white-space: pre-wrap;
  font-family: 'JetBrains Mono', monospace;
  background-color: rgba(0, 0, 0, 0.15);
}

/* Tool Execution Card */
.tool-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background-color: var(--bg-surface);
  margin-bottom: 8px;
  overflow: hidden;
  font-size: 12px;
}

.tool-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  cursor: pointer;
  background-color: var(--bg-surface);
  transition: background 0.15s;
}

.tool-header:hover {
  background-color: var(--bg-hover);
}

.tool-status-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
}

.tool-body {
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  background: rgba(0,0,0,0.2);
  max-height: 220px;
  overflow-y: auto;
}

/* Settings Form Controls */
.settings-select, .settings-input {
  width: 100%;
  background-color: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s;
}

.settings-select:focus, .settings-input:focus {
  border-color: var(--accent);
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

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

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

/* Typing cursor animation */
.typing-cursor {
  display: inline-block;
  width: 7px;
  height: 15px;
  background-color: var(--text-primary);
  vertical-align: middle;
  margin-left: 3px;
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
