:root {
  --surface-base: #1A1D23;
  --surface-raised: #242830;
  --surface-elevated: #2C3038;
  --accent-primary: #7BA05B;
  --accent-primary-hover: #8DB86A;
  --eloq-green: #2D5016;
  --accent-secondary: #E8A745;
  --accent-secondary-hover: #D49A3C;
  --text-primary: #E8E4DD;
  --text-secondary: #8A8A95;
  --text-muted: #5A5A68;
  --border-default: #2E333B;
  --border-subtle: #252A32;
  --recording-red: #E06050;
  --recording-red-hover: #C8503F;
  --success: #7BA05B;
  --success-muted: #1E2E1A;
  --warning: #E8A745;
  --warning-muted: #33301E;
  --error: #E06050;
  --error-muted: #3A2225;
  --info: #5B8FA0;
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Fira Code", "Cascadia Code", "Consolas", monospace;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.20);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.25);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.30);
  --shadow-glow-red: 0 4px 24px rgba(224,96,80,0.30);
  --motion-fast: 100ms ease-out;
  --motion-base: 150ms ease-out;
  --motion-slow: 250ms ease-out;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--surface-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.mintly-mark {
  display: inline-flex;
  align-items: center;
  height: 32px;
}

.mintly-logo {
  display: block;
  width: 116px;
  height: auto;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-chip.idle {
  background: var(--surface-elevated);
  color: var(--text-muted);
}

.status-chip.recording,
.status-chip.failed,
.status-chip.error,
.status-chip.unreviewed {
  background: var(--error-muted);
  color: var(--recording-red);
}

.status-chip.uploading,
.status-chip.done,
.status-chip.reviewed,
.status-chip.connected {
  background: var(--success-muted);
  color: var(--accent-primary);
}

.status-chip.processing,
.status-chip.pending {
  background: var(--warning-muted);
  color: var(--warning);
}

.btn-primary,
.btn-secondary,
.btn-danger,
.btn-ghost {
  min-height: 44px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  transition: background var(--motion-base), border-color var(--motion-base), color var(--motion-base), transform var(--motion-base), box-shadow var(--motion-base);
}

.btn-primary {
  border: 0;
  background: var(--accent-primary);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-primary-hover);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn-danger {
  border: 0;
  background: var(--recording-red);
  color: #fff;
}

.btn-danger:hover:not(:disabled) {
  background: var(--recording-red-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  border: 1.5px solid var(--border-default);
  background: transparent;
  color: var(--text-primary);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--surface-elevated);
  border-color: var(--text-muted);
}

.btn-ghost {
  min-height: 32px;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover:not(:disabled) {
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
}

.field-label {
  display: block;
  margin-bottom: var(--space-1);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field-control {
  width: 100%;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  color: var(--text-primary);
  padding: 10px 12px;
}

.field-control::placeholder {
  color: var(--text-muted);
}

.field-control:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(123,160,91,0.20);
  outline: none;
}

@keyframes mp-record-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

@keyframes mp-ring-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.08); }
}

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