/* ==========================================================================
   KORSHTRANSALATE - APPLE GLASS ARCHITECTURAL DESIGN SYSTEM
   Theme: macOS Sonoma / iOS 18 / visionOS Liquid Glass & Frosted Crystal
   Specification & Architecture: Bonsai 4B (KorshLab)
   Implementation: Principal Engineer
   ========================================================================== */

:root {
  /* --- DARK GLASS (Space Obsidian / Default) --- */
  --bg-primary: #000000;
  --bg-surface: rgba(18, 20, 26, 0.72);
  --bg-surface-elevated: rgba(26, 29, 38, 0.55);
  --bg-surface-hover: rgba(255, 255, 255, 0.08);
  --border-color: rgba(255, 255, 255, 0.12);
  --border-color-hover: rgba(255, 255, 255, 0.24);
  --border-color-focus: #00E5FF;
  
  --text-primary: #f5f5f7;
  --text-secondary: #86868b;
  --text-tertiary: #545458;
  --text-inverted: #000000;
  
  --accent-contrast: #ffffff;
  --accent-subtle: rgba(255, 255, 255, 0.06);
  --accent-hover: rgba(255, 255, 255, 0.12);
  
  /* Apple System Accents */
  --accent-cyan: #00E5FF;
  --accent-indigo: #6366F1;
  --accent-apple-green: #34C759;
  --accent-apple-blue: #0071E3;
  --accent-apple-purple: #AF52DE;
  
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  /* Apple Glass & Specular Geometry */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-squircle: 24px;
  --radius-pill: 9999px;
  
  /* Apple Spring Physics */
  --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Glass Specular Highlights and Elevation Shadows */
  --glass-blur: 28px;
  --glass-saturate: 190%;
  --glass-brightness: 95%;
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1px 0 rgba(0, 0, 0, 0.3);
  --shadow-workspace: 0 28px 70px rgba(0, 0, 0, 0.55), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-modal: 0 36px 90px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.12);
  --shadow-button: 0 4px 14px rgba(0, 0, 0, 0.3);

  /* Ambient Mesh Orbs */
  --orb-1-color: rgba(99, 102, 241, 0.18);
  --orb-2-color: rgba(0, 229, 255, 0.14);
  --orb-3-color: rgba(52, 199, 89, 0.10);
}

[data-theme="light"] {
  /* --- LIGHT GLASS (Frosted Ice Crystal / Apple White) --- */
  --bg-primary: #f0f2f7;
  --bg-surface: rgba(255, 255, 255, 0.75);
  --bg-surface-elevated: rgba(255, 255, 255, 0.55);
  --bg-surface-hover: rgba(0, 0, 0, 0.05);
  --border-color: rgba(0, 0, 0, 0.09);
  --border-color-hover: rgba(0, 0, 0, 0.18);
  --border-color-focus: #0071E3;
  
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --text-inverted: #ffffff;
  
  --accent-contrast: #1d1d1f;
  --accent-subtle: rgba(0, 0, 0, 0.04);
  --accent-hover: rgba(0, 0, 0, 0.08);
  
  --accent-cyan: #0071E3;
  --accent-indigo: #5856D6;
  --accent-apple-green: #34C759;
  --accent-apple-blue: #0071E3;
  --accent-apple-purple: #AF52DE;
  
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -1px 0 rgba(0, 0, 0, 0.04);
  --shadow-workspace: 0 24px 60px rgba(0, 0, 0, 0.08), 0 6px 18px rgba(0, 0, 0, 0.03);
  --shadow-modal: 0 32px 80px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.08);
  --shadow-button: 0 4px 14px rgba(0, 0, 0, 0.06);

  /* Light Ambient Mesh Orbs */
  --orb-1-color: rgba(0, 113, 227, 0.14);
  --orb-2-color: rgba(99, 102, 241, 0.11);
  --orb-3-color: rgba(52, 199, 89, 0.08);
}

/* Reset & Global Rules */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

html, body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* ==========================================================================
   AMBIENT MESH LIGHT (Apple Liquid Background Refraction)
   ========================================================================== */
.ambient-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.85;
  will-change: transform;
}

.orb-1 {
  top: -150px;
  left: 10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--orb-1-color) 0%, transparent 70%);
  animation: floatOrb 22s infinite alternate ease-in-out;
}

.orb-2 {
  bottom: -150px;
  right: 10%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, var(--orb-2-color) 0%, transparent 70%);
  animation: floatOrb 26s infinite alternate-reverse ease-in-out;
}

.orb-3 {
  top: 40%;
  left: 45%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--orb-3-color) 0%, transparent 70%);
  animation: pulseGlow 14s infinite alternate ease-in-out;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
  100% { transform: translate(-30px, 50px) scale(0.95); }
}

@keyframes pulseGlow {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.9; }
}

/* ==========================================================================
   LAYOUT CONTAINER
   ========================================================================== */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 1220px;
  width: 100%;
  margin: 0 auto;
  padding-top: max(28px, calc(16px + env(safe-area-inset-top, 0px)));
  padding-bottom: max(32px, calc(20px + env(safe-area-inset-bottom, 0px)));
  padding-left: max(20px, calc(16px + env(safe-area-inset-left, 0px)));
  padding-right: max(20px, calc(16px + env(safe-area-inset-right, 0px)));
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
}

/* ==========================================================================
   HEADER (Dynamic Island / Floating Glass Capsule)
   ========================================================================== */
.app-header {
  position: relative;
  z-index: 10;
  touch-action: manipulation;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 24px;
  margin-bottom: 28px;
  background: var(--bg-surface);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) brightness(var(--glass-brightness));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) brightness(var(--glass-brightness));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-squircle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), var(--glass-highlight);
  transition: all var(--transition-normal);
}

.app-header:hover {
  border-color: var(--border-color-hover);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22), var(--glass-highlight);
}

.header-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.badge-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: var(--shadow-button);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-apple-green);
  box-shadow: 0 0 8px var(--accent-apple-green);
  animation: statusPulse 2s infinite ease-in-out;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.brand-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  cursor: default;
}

.brand-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: transform var(--transition-normal), filter var(--transition-normal);
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

.brand-wrapper:hover .brand-logo-img {
  transform: scale(1.08) rotate(-3deg);
}

[data-theme="light"] .brand-logo-img {
  filter: invert(1) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
}

.brand-text-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-subtitle {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--text-secondary);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.btn-icon {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-button);
}

.btn-icon:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-color-hover);
  transform: scale(1.06);
}

.btn-icon:active {
  transform: scale(0.94);
}

.btn-icon svg {
  width: 19px;
  height: 19px;
  transition: transform var(--transition-normal);
}

.btn-icon:hover svg {
  transform: rotate(20deg);
}

.btn-glass-pill {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  height: 42px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-button);
}

.btn-glass-pill:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-color-hover);
  transform: translateY(-1px);
}

.btn-glass-pill:active {
  transform: scale(0.96);
}

.btn-glass-pill svg {
  width: 17px;
  height: 17px;
  color: var(--text-secondary);
}

.btn-glass-pill:hover svg {
  color: var(--text-primary);
}

/* ==========================================================================
   HERO TYPEWRITER ANIMATION (Korsh -> es el futuro)
   ========================================================================== */
.hero-typewriter-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: -10px;
  margin-bottom: 24px;
  min-height: 34px;
  user-select: none;
  pointer-events: none;
  position: relative;
  z-index: 5;
}

.typewriter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 20px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(20px) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(20px) saturate(var(--glass-saturate));
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), var(--glass-highlight);
  font-family: var(--font-sans);
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  min-width: 130px;
  min-height: 32px;
  box-sizing: border-box;
  transition: all var(--transition-normal);
}

.typewriter-text {
  font-weight: 600;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  line-height: 1.2;
}

[data-theme="light"] .typewriter-text {
  background: linear-gradient(135deg, #1d1d1f 0%, #6e6e73 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  margin-left: 3px;
  background-color: var(--accent-cyan);
  border-radius: 1px;
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: cursorBlink 0.85s infinite ease-in-out;
  vertical-align: -0.1em;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0; transform: scaleY(0.7); }
}

/* ==========================================================================
   FLOATING GLASS TRANSLATION DECK (MAIN WORKSPACE)
   ========================================================================== */
.translator-workspace {
  background: var(--bg-surface);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) brightness(var(--glass-brightness));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) brightness(var(--glass-brightness));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-squircle);
  box-shadow: var(--shadow-workspace), var(--glass-highlight);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%;
  margin: auto 0;
  transition: transform var(--transition-normal), border-color var(--transition-fast), box-shadow var(--transition-normal);
}

.translator-workspace:hover {
  border-color: var(--border-color-hover);
}

.translator-workspace:focus-within {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: var(--shadow-workspace), 0 0 0 1px rgba(255, 255, 255, 0.2), var(--glass-highlight);
}

[data-theme="light"] .translator-workspace:focus-within {
  border-color: var(--accent-apple-blue);
  box-shadow: var(--shadow-workspace), 0 0 0 1px var(--accent-apple-blue), var(--glass-highlight);
}

/* ==========================================================================
   SEGMENTED CONTROLS (Cupertino Capsule Tabs)
   ========================================================================== */
.workspace-tabs-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-surface-elevated);
  min-height: 58px;
  padding: 6px 18px;
  gap: 12px;
}

.tabs-side {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.tabs-side.source-tabs {
  justify-content: flex-start;
  padding: 0;
}

.tabs-side.target-tabs {
  justify-content: flex-start;
  padding: 0;
}

.quick-langs {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.16);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .quick-langs {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.lang-tab {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  position: relative;
  outline: none;
}

.lang-tab:hover {
  color: var(--text-primary);
  background: var(--bg-surface-hover);
}

.lang-tab.active {
  color: var(--text-primary);
  font-weight: 600;
  background: var(--bg-surface);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .lang-tab.active {
  background: #ffffff;
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.lang-tab.active::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--accent-cyan);
  box-shadow: 0 0 6px var(--accent-cyan);
}

.btn-lang-more {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-button);
}

.btn-lang-more:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-color-hover);
  transform: translateY(-1px);
}

.btn-lang-more:active {
  transform: translateY(1px);
}

.btn-lang-more svg {
  width: 13px;
  height: 13px;
  color: var(--text-secondary);
  transition: transform var(--transition-fast);
}

.btn-lang-more:hover svg {
  transform: translateY(1px);
  color: var(--text-primary);
}

.lang-tag-pill {
  display: none;
}

.lang-more-label {
  display: inline-block;
}

.lang-current-label {
  display: inline-block;
}

/* ==========================================================================
   CENTER SWAP BUTTON (Cupertino Optical Lens)
   ========================================================================== */
.swap-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 8px;
  flex-shrink: 0;
}

.btn-swap-pill {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-button), var(--glass-highlight);
  transition: transform var(--transition-normal), background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  z-index: 10;
  flex-shrink: 0;
}

.btn-swap-pill:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-surface-hover);
  transform: scale(1.12);
  box-shadow: 0 4px 16px rgba(0, 229, 255, 0.3), var(--glass-highlight);
}

.btn-swap-pill:active {
  transform: scale(0.92) rotate(180deg);
}

.btn-swap-pill svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-normal);
}

/* ==========================================================================
   WORKSPACE BODY (SPLIT CANVAS)
   ========================================================================== */
.workspace-body {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  min-height: 440px;
}

.vertical-divider {
  background-color: var(--border-color);
  width: 1px;
}

.box-half {
  display: flex;
  flex-direction: column;
  position: relative;
  background: transparent;
}

.editor-textarea {
  flex: 1;
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.65;
  padding: 28px;
  resize: none;
  min-height: 320px;
}

.editor-textarea::placeholder {
  color: var(--text-tertiary);
  font-size: 1.35rem;
  font-weight: 300;
}

.editor-output {
  flex: 1;
  width: 100%;
  padding: 28px;
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
  user-select: text;
  min-height: 320px;
}

.editor-output.placeholder {
  color: var(--text-tertiary);
  font-weight: 300;
}

/* Apple Liquid Shimmer Loading Animation */
.shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.02) 0%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.02) 100%
  );
  background-size: 200% 100%;
  animation: appleShimmer 1.5s infinite var(--ease-apple);
  border-radius: var(--radius-sm);
}

[data-theme="light"] .shimmer {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.02) 0%,
    rgba(0, 0, 0, 0.08) 50%,
    rgba(0, 0, 0, 0.02) 100%
  );
  background-size: 200% 100%;
}

@keyframes appleShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ==========================================================================
   TOOLBAR & ACTIONS (Cupertino Glass Toolbars)
   ========================================================================== */
.box-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface-elevated);
}

.box-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.limit-exceeded {
  color: #ff453a !important;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(255, 69, 58, 0.4);
}

.detected-badge {
  background: rgba(52, 199, 89, 0.12);
  border: 1px solid rgba(52, 199, 89, 0.28);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  color: var(--accent-apple-green);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.engine-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.28);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 8px rgba(0, 229, 255, 0.12);
  transition: all var(--transition-fast);
  cursor: pointer;
  user-select: none;
}

.engine-badge::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  flex-shrink: 0;
  animation: enginePulse 2.2s infinite ease-in-out;
}

.engine-badge:hover {
  background: rgba(0, 229, 255, 0.14);
  border-color: rgba(0, 229, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 14px rgba(0, 229, 255, 0.25);
  transform: translateY(-1px);
}

.engine-badge:active {
  transform: scale(0.96);
}

@keyframes enginePulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 8px var(--accent-cyan);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.8);
    box-shadow: 0 0 3px var(--accent-cyan);
  }
}

[data-theme="light"] .engine-badge {
  color: var(--accent-apple-blue);
  background: rgba(0, 113, 227, 0.08);
  border-color: rgba(0, 113, 227, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 6px rgba(0, 113, 227, 0.12);
}

[data-theme="light"] .engine-badge::before {
  background-color: var(--accent-apple-blue);
  box-shadow: 0 0 8px var(--accent-apple-blue);
  animation-name: enginePulseLight;
}

[data-theme="light"] .engine-badge:hover {
  background: rgba(0, 113, 227, 0.14);
  border-color: rgba(0, 113, 227, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), 0 4px 12px rgba(0, 113, 227, 0.18);
}

@keyframes enginePulseLight {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 7px var(--accent-apple-blue);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.85);
    box-shadow: 0 0 2px var(--accent-apple-blue);
  }
}

.latency-badge {
  color: var(--text-tertiary);
  font-size: 0.74rem;
}

.box-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-action {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.btn-action:hover {
  color: var(--text-primary);
  background: var(--bg-surface-hover);
  border-color: var(--border-color);
  transform: translateY(-1px);
}

.btn-action:active {
  transform: scale(0.92);
}

.btn-action svg {
  width: 18px;
  height: 18px;
}

/* Tooltip Feedback (Apple Frosted Tooltip) */
.btn-action[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--text-primary);
  color: var(--text-inverted);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: all var(--transition-fast);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  z-index: 100;
}

.btn-action:hover[data-tooltip]::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   FOOTER (Apple Glass Floating Capsule Deck)
   ========================================================================== */
.app-footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 32px;
  padding: 14px 28px;
  background: var(--bg-surface);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) brightness(var(--glass-brightness));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) brightness(var(--glass-brightness));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-squircle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), var(--glass-highlight);
  transition: all var(--transition-normal);
  position: relative;
  box-sizing: border-box;
}

.app-footer:hover {
  border-color: var(--border-color-hover);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18), var(--glass-highlight);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.footer-brand-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  white-space: nowrap;
}

.footer-tagline {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  font-weight: 400;
  border-left: 1px solid var(--border-color);
  padding-left: 12px;
  white-space: nowrap;
}

.footer-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all var(--transition-fast);
  cursor: default;
  user-select: none;
}

.footer-pill:hover {
  color: var(--text-primary);
  border-color: var(--border-color-hover);
  background: var(--bg-surface-hover);
  transform: translateY(-1px);
}

.footer-pill-pro {
  color: var(--accent-cyan);
  border-color: rgba(0, 229, 255, 0.25);
  background: rgba(0, 229, 255, 0.06);
}

[data-theme="light"] .footer-pill-pro {
  color: var(--accent-apple-blue);
  border-color: rgba(0, 113, 227, 0.25);
  background: rgba(0, 113, 227, 0.06);
}

.footer-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-apple-green);
  box-shadow: 0 0 6px var(--accent-apple-green);
  animation: statusPulse 2s infinite ease-in-out;
}

.footer-copyright {
  font-size: 0.76rem;
  color: var(--text-tertiary);
  font-family: var(--font-sans);
  text-align: right;
  white-space: nowrap;
}

/* ==========================================================================
   LANGUAGE SELECTION MODAL (Cupertino Frosted Sheet)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-surface);
  backdrop-filter: blur(36px) saturate(200%);
  -webkit-backdrop-filter: blur(36px) saturate(200%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-squircle);
  width: 100%;
  max-width: 680px;
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-modal), var(--glass-highlight);
  transform: scale(0.95) translateY(10px);
  transition: transform var(--transition-normal), opacity var(--transition-normal);
  overflow: hidden;
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 20px 26px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-surface-elevated);
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.modal-search-wrapper {
  padding: 16px 26px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-surface);
}

.modal-search-input {
  width: 100%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  outline: none;
  transition: all var(--transition-fast);
}

.modal-search-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.15);
}

.modal-languages-list {
  padding: 16px 26px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 8px;
  max-height: 440px;
}

/* Custom Silky Scrollbar */
.modal-languages-list::-webkit-scrollbar {
  width: 6px;
}

.modal-languages-list::-webkit-scrollbar-track {
  background: transparent;
}

.modal-languages-list::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-pill);
}

.modal-lang-item {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-primary);
  text-align: left;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.modal-lang-item:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-color);
  transform: translateY(-1px);
}

.modal-lang-item.selected {
  background: rgba(0, 229, 255, 0.12);
  border-color: var(--accent-cyan);
  font-weight: 600;
}

[data-theme="light"] .modal-lang-item.selected {
  background: rgba(0, 113, 227, 0.12);
  border-color: var(--accent-apple-blue);
}

.lang-native-name {
  font-size: 0.74rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   TOAST NOTIFICATION (Apple Dynamic Island Notification)
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(80px) scale(0.9);
  background: var(--bg-surface);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  color: var(--text-primary);
  border: 1px solid var(--border-color-hover);
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), var(--glass-highlight);
  opacity: 0;
  transition: all var(--transition-normal);
  z-index: 2000;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast.show {
  transform: translateX(-50%) translateY(0) scale(1);
  opacity: 1;
}

/* ==========================================================================
   RESPONSIVE DESIGN (macOS / iPad / iPhone)
   ========================================================================== */
@media (max-width: 900px) {
  .app-container {
    padding-top: max(28px, calc(20px + env(safe-area-inset-top, 0px)));
    padding-bottom: max(20px, calc(16px + env(safe-area-inset-bottom, 0px)));
    padding-left: max(14px, calc(10px + env(safe-area-inset-left, 0px)));
    padding-right: max(14px, calc(10px + env(safe-area-inset-right, 0px)));
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  
  .app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    margin-bottom: 16px;
    border-radius: var(--radius-lg);
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
    touch-action: manipulation;
  }

  .hero-typewriter-container {
    margin-top: -6px;
    margin-bottom: 16px;
    min-height: 28px;
  }

  .typewriter-badge {
    padding: 5px 16px;
    font-size: 0.88rem;
    min-width: 120px;
  }
  
  .header-left {
    display: none;
  }

  .brand-wrapper {
    gap: 10px;
  }

  .brand-logo-img {
    width: 34px;
    height: 34px;
  }

  .brand-title {
    font-size: 1.12rem;
  }

  .brand-subtitle {
    font-size: 0.60rem;
    letter-spacing: 0.08em;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .translator-workspace {
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
  }

  .workspace-tabs-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    gap: 6px;
    min-height: 48px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .tabs-side {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    width: auto;
    max-width: none;
    box-sizing: border-box;
  }

  .tabs-side.source-tabs {
    justify-content: flex-start;
  }

  .tabs-side.target-tabs {
    justify-content: flex-end;
  }

  .quick-langs {
    display: none !important;
  }

  .btn-lang-more {
    width: 100%;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    font-size: 0.84rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 2px 6px rgba(0, 0, 0, 0.15);
    gap: 5px;
    min-height: 36px;
    cursor: pointer;
    box-sizing: border-box;
  }

  .lang-tag-pill {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 2px 5px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.14);
    color: var(--text-secondary);
    line-height: 1;
    flex-shrink: 0;
  }

  [data-theme="light"] .lang-tag-pill {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-secondary);
  }

  .lang-more-label {
    display: none !important;
  }

  .lang-current-label {
    display: inline-block !important;
    max-width: 95px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    flex: 0 1 auto;
  }

  .btn-lang-more svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    opacity: 0.7;
  }
  
  .swap-divider {
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    border: none;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .swap-divider::before {
    display: none;
  }
  
  .btn-swap-pill {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    transform: none;
    flex-shrink: 0;
    margin: 0 4px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), var(--glass-highlight);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .btn-swap-pill svg {
    width: 17px;
    height: 17px;
  }

  .btn-swap-pill:hover {
    transform: scale(1.08);
  }

  .btn-swap-pill:active {
    transform: scale(0.92) rotate(180deg);
  }
  
  .workspace-body {
    grid-template-columns: 1fr;
    width: 100%;
    box-sizing: border-box;
  }

  .box-half {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .vertical-divider {
    width: 100%;
    height: 1px;
  }
  
  .editor-textarea, .editor-output {
    min-height: 165px;
    max-height: 380px;
    padding: 16px 18px;
    font-size: 1.08rem;
    box-sizing: border-box;
  }

  .box-bottom-bar {
    padding: 10px 16px;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
    box-sizing: border-box;
  }

  .box-meta {
    gap: 8px;
    font-size: 0.74rem;
  }

  .box-actions {
    gap: 5px;
  }

  .btn-action {
    width: 36px;
    height: 36px;
  }

  .btn-action svg {
    width: 16px;
    height: 16px;
  }
  
  .app-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
    margin-top: 14px;
    margin-bottom: 0;
    border-radius: var(--radius-lg);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    background: var(--bg-surface);
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100%;
  }

  .footer-brand-title {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: -0.01em;
  }

  .footer-tagline {
    border-left: none;
    padding-left: 0;
    font-size: 0.68rem;
    color: var(--text-tertiary);
    white-space: normal;
    text-align: center;
    max-width: 100%;
    line-height: 1.3;
  }

  .footer-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    width: 100%;
  }

  .footer-pill {
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
  }

  .footer-copyright {
    font-size: 0.66rem;
    color: var(--text-tertiary);
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    width: 100%;
    margin-top: 2px;
  }
}

/* Modales Cupertino Bottom Sheet para Tablet y Móvil */
@media (max-width: 768px) {
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .modal-content {
    max-width: 100vw;
    width: 100%;
    max-height: calc(88vh - env(safe-area-inset-top, 0px));
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    border-bottom: none;
    border-left: none;
    border-right: none;
    transform: translateY(100%);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
  }

  .modal-overlay.active .modal-content {
    transform: translateY(0);
  }

  .modal-header {
    padding: 12px 18px;
  }

  .modal-title {
    font-size: 1.05rem;
  }

  .modal-search-wrapper {
    padding: 10px 16px;
  }

  .modal-content::before {
    content: '';
    display: block;
    width: 38px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.25);
    margin: 8px auto 2px;
  }

  [data-theme="light"] .modal-content::before {
    background: rgba(0, 0, 0, 0.15);
  }

  .modal-languages-list {
    padding: 10px 14px calc(28px + env(safe-area-inset-bottom, 0px));
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    max-height: 58vh;
    -webkit-overflow-scrolling: touch;
  }

  .modal-lang-item {
    padding: 8px 10px;
    font-size: 0.82rem;
    border-radius: var(--radius-sm);
  }
}

/* Optimización Extrema para Smartphones Compactos (iPhone SE, Galaxy, Pixel <= 480px) */
@media (max-width: 480px) {
  .app-container {
    padding-top: max(34px, calc(24px + env(safe-area-inset-top, 0px)));
    padding-bottom: max(20px, calc(18px + env(safe-area-inset-bottom, 0px)));
    padding-left: max(10px, calc(8px + env(safe-area-inset-left, 0px)));
    padding-right: max(10px, calc(8px + env(safe-area-inset-right, 0px)));
  }

  .app-header {
    padding: 10px 14px;
    margin-top: 0;
    margin-bottom: 14px;
    position: relative;
    z-index: 10;
    touch-action: manipulation;
    width: 100%;
    box-sizing: border-box;
  }

  .hero-typewriter-container {
    margin-top: -4px;
    margin-bottom: 14px;
    min-height: 26px;
  }

  .typewriter-badge {
    padding: 4px 14px;
    font-size: 0.82rem;
    min-width: 110px;
  }

  .brand-logo-img {
    width: 28px;
    height: 28px;
  }

  .brand-title {
    font-size: 1.0rem;
  }

  .brand-subtitle {
    display: none;
  }

  #historyBtn.btn-glass-pill {
    padding: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #historyBtn.btn-glass-pill span {
    display: none;
  }

  #themeToggle.btn-icon {
    width: 36px;
    height: 36px;
  }

  .workspace-tabs-bar {
    padding: 5px 6px;
    gap: 4px;
  }

  .btn-lang-more {
    font-size: 0.78rem;
    padding: 6px 8px;
    min-height: 35px;
    gap: 4px;
  }

  .btn-lang-more .lang-current-label {
    max-width: 78px;
  }

  .lang-tag-pill {
    font-size: 0.58rem;
    padding: 1px 4px;
  }

  .btn-swap-pill {
    width: 34px;
    height: 34px;
    margin: 0 1px;
  }

  .editor-textarea, .editor-output {
    min-height: 140px;
    padding: 14px 12px;
    font-size: 1.02rem;
  }

  .box-bottom-bar {
    padding: 8px 10px;
  }

  .box-meta {
    font-size: 0.70rem;
    gap: 6px;
  }

  .engine-badge {
    padding: 3px 8px;
    font-size: 0.65rem;
    gap: 5px;
  }

  .btn-action {
    width: 32px;
    height: 32px;
  }

  .footer-tagline {
    font-size: 0.64rem;
    display: block;
    opacity: 0.8;
  }

  .footer-badges {
    gap: 4px;
  }

  .footer-pill {
    font-size: 0.62rem;
    padding: 2px 6px;
  }

  .modal-languages-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mic Active Recording Visual State */
.btn-action.listening-active {
  background: rgba(255, 59, 48, 0.2) !important;
  border-color: #ff3b30 !important;
  color: #ff3b30 !important;
  animation: recPulse 1.2s infinite ease-in-out;
}

@keyframes recPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.6); transform: scale(1); }
  50% { box-shadow: 0 0 0 6px rgba(255, 59, 48, 0); transform: scale(1.08); }
}

/* History Modal Item Cards */
.history-item-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.history-item-card:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-color-hover);
  transform: translateY(-1px);
}

.history-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.history-source {
  font-size: 0.92rem;
  color: var(--text-primary);
}

.history-target {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent-cyan);
}

