/* TIPOGRAFÍA AUTOALOJADA LOCALMENTE (DSGVO-KONFORM / CERO CONEXIONES EXTERNAS) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/inter-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/inter-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/inter-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('./fonts/inter-700.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/jetbrains-mono-400.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/jetbrains-mono-500.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/jetbrains-mono-600.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --bg-app: #0B0F19;
  --bg-surface: #111827;
  --bg-surface-elevated: #1F2937;
  --bg-surface-active: #374151;
  
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-focus: rgba(255, 255, 255, 0.26);

  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #64748B;

  --type-maskulin: #3B82F6;
  --type-maskulin-alpha: rgba(59, 130, 246, 0.15);
  --type-feminin: #EF4444;
  --type-feminin-alpha: rgba(239, 68, 68, 0.15);
  --type-neutral: #10B981;
  --type-neutral-alpha: rgba(16, 185, 129, 0.15);
  --type-plural: #F59E0B;
  --type-plural-alpha: rgba(245, 158, 11, 0.15);
  --type-verb: #8B5CF6;
  --type-verb-alpha: rgba(139, 92, 246, 0.15);

  --status-idle: #64748B;
  --status-success: #10B981;
  --status-warning: #F59E0B;
  --status-failure: #EF4444;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --trans-speed: 150ms;
}

[data-theme="warm-light"] {
  color-scheme: light;
  --bg-app: #EAE7E1;
  --bg-surface: #F5F3EF;
  --bg-surface-elevated: #DFDBD3;
  --bg-surface-active: #CFC9BE;

  --border-subtle: rgba(0, 0, 0, 0.09);
  --border-focus: rgba(0, 0, 0, 0.28);

  --text-primary: #1A1F2C;
  --text-secondary: #475569;
  --text-muted: #64748B;

  --type-maskulin: #1D4ED8;
  --type-maskulin-alpha: rgba(29, 78, 216, 0.11);
  --type-feminin: #B91C1C;
  --type-feminin-alpha: rgba(185, 28, 28, 0.11);
  --type-neutral: #047857;
  --type-neutral-alpha: rgba(4, 120, 87, 0.11);
  --type-plural: #B45309;
  --type-plural-alpha: rgba(180, 83, 9, 0.13);
  --type-verb: #6D28D9;
  --type-verb-alpha: rgba(109, 40, 217, 0.11);

  --status-idle: #64748B;
  --status-success: #047857;
  --status-warning: #B45309;
  --status-failure: #B91C1C;
}

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

html, body {
  width: 100%;
  height: 100dvh;
  overscroll-behavior: none;
  background-color: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  transition: background-color var(--trans-speed) ease, color var(--trans-speed) ease;
}

.app-shell {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  width: 100vw;
}

.top-nav {
  min-height: calc(54px + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  padding-left: max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  z-index: 30;
}

.top-nav[hidden] {
  display: none !important;
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.nav-module-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.mobile-nav-select {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}

.brand-badge {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.01) 100%), var(--bg-surface-elevated);
  border: 1px solid var(--border-focus);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.18);
  flex-shrink: 0;
}

.brand-badge.large {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.brand-glyph {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--type-maskulin);
  line-height: 1;
}

.brand-meta {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-primary);
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
}

.module-selector {
  display: flex;
  align-items: center;
  background: var(--bg-app);
  padding: 2px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}

.nav-divider {
  width: 1px;
  height: 18px;
  background: var(--border-subtle);
  margin: 0 4px;
}

.nav-tab {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--trans-speed) ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-tab:hover {
  color: var(--text-primary);
}

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

.due-badge {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 10px;
  background: var(--type-maskulin-alpha);
  color: var(--type-maskulin);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.batch-gen-wrapper {
  position: relative;
}

.btn-generator-trigger {
  background: var(--type-maskulin-alpha);
  border: 1px solid var(--type-maskulin);
  color: var(--type-maskulin);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.generator-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 340px;
  background: var(--bg-surface);
  border: 1px solid var(--border-focus);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  display: none;
  z-index: 50;
}

.generator-popover.right-aligned {
  left: auto;
  right: 0;
}

.generator-popover.open {
  display: block;
}

.popover-header {
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-subtle);
}

.popover-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.generator-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.full-width {
  width: 100%;
  justify-content: center;
}

.telemetry-pill {
  display: flex;
  align-items: center;
  background: var(--bg-app);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 4px 10px;
  gap: 0.65rem;
  cursor: pointer;
  color: inherit;
  transition: border-color var(--trans-speed) ease;
}

.telemetry-pill:hover {
  border-color: var(--type-maskulin);
}

.telemetry-metric {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.metric-label {
  font-size: 0.58rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.metric-val {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-primary);
}

.telemetry-divider {
  width: 1px;
  height: 18px;
  background-color: var(--border-subtle);
}

.btn-icon {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 34px;
  height: 34px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--trans-speed) ease;
  flex-shrink: 0;
}

.btn-icon:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border-color: var(--border-focus);
}

.mono-icon {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
}

.token-card:active,
.btn-solid:active,
.btn-primary-action:active,
.btn-subtle-warning:active,
.nav-tab:active,
.auth-tab:active,
.btn-icon:active,
.btn-generator-trigger:active,
.telemetry-pill:active {
  transform: scale(0.96);
  transition: transform 90ms var(--ease-elastic);
}

.viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.view-panel {
  position: absolute;
  inset: 0;
  display: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.view-panel.active {
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: translateY(0);
}

/* PORTADA AUTH */
.auth-top-bar {
  position: fixed;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1.25rem, env(safe-area-inset-right));
  z-index: 20;
}

.auth-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.auth-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.auth-title {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.auth-subtitle {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-app);
  padding: 3px;
  border-radius: 7px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.35rem;
}

.auth-tab {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color var(--trans-speed) ease, color var(--trans-speed) ease;
}

.auth-tab:hover {
  color: var(--text-primary);
}

.auth-tab.active {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.auth-error-banner {
  background: var(--type-feminin-alpha);
  border: 1px solid var(--type-feminin);
  color: var(--type-feminin);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.4;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  margin-bottom: 1.1rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

input, select {
  width: 100%;
  min-width: 0;
  background: var(--bg-app);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.6rem 0.78rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--trans-speed) ease;
}

input::placeholder {
  color: var(--text-muted);
  opacity: 0.75;
}

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

/* WORKSPACE COMPACTADO VERTICALMENTE (ESCRITORIO >= 1025px INTACTO) */
.workspace-container {
  max-width: 880px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  gap: 1.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.workspace-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.syntax-clues-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.batch-status-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 3px 9px;
  border-radius: 4px;
}

.clue-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: 4px;
}

.clue-chip[data-clue="motion"] {
  border-color: var(--type-maskulin);
  color: var(--type-maskulin);
  background: var(--type-maskulin-alpha);
}

.clue-chip[data-clue="static"] {
  border-color: var(--type-neutral);
  color: var(--type-neutral);
  background: var(--type-neutral-alpha);
}

.ide-canvas-row {
  display: flex;
  align-items: stretch;
  gap: 0.85rem;
}

.batch-nodes-rail {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.6rem 0.45rem;
  gap: 0.35rem;
}

.batch-node {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-app);
  border: 1.5px solid var(--border-subtle);
  color: var(--text-muted);
  transition: all var(--trans-speed) ease;
}

.batch-node.active {
  border-color: var(--type-maskulin);
  color: var(--type-maskulin);
  box-shadow: 0 0 0 3px var(--type-maskulin-alpha);
}

.batch-node.status-MASTERED {
  background: var(--type-neutral-alpha);
  border-color: var(--status-success);
  color: var(--status-success);
}

.batch-node.status-LUCKY_GUESS {
  background: var(--type-plural-alpha);
  border-color: var(--status-warning);
  color: var(--status-warning);
}

.batch-node.status-FAILED {
  background: var(--type-feminin-alpha);
  border-color: var(--status-failure);
  color: var(--status-failure);
}

.sentence-canvas {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 2.35rem 2.25rem;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.22);
}

.sentence-canvas.pulse-glow {
  animation: glowPulse 480ms var(--ease-out);
}

@keyframes glowPulse {
  0% { border-color: var(--border-focus); }
  50% { border-color: var(--type-maskulin); box-shadow: 0 0 0 5px var(--type-maskulin-alpha); }
  100% { border-color: var(--border-subtle); }
}

.sentence-display {
  font-size: 1.55rem;
  line-height: 1.6;
  font-weight: 500;
  color: var(--text-primary);
}

.sentence-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 42px;
  margin: 0 6px;
  padding: 0 14px;
  vertical-align: middle;
  background: var(--bg-app);
  border: 1.5px dashed var(--border-focus);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
}

.sentence-slot.filled {
  border-style: solid;
}

.sentence-slot.slot-maskulin { border-color: var(--type-maskulin); background: var(--type-maskulin-alpha); color: var(--type-maskulin); }
.sentence-slot.slot-feminin { border-color: var(--type-feminin); background: var(--type-feminin-alpha); color: var(--type-feminin); }
.sentence-slot.slot-neutral { border-color: var(--type-neutral); background: var(--type-neutral-alpha); color: var(--type-neutral); }
.sentence-slot.slot-plural { border-color: var(--type-plural); background: var(--type-plural-alpha); color: var(--type-plural); }
.sentence-slot.slot-verb { border-color: var(--type-verb); background: var(--type-verb-alpha); color: var(--type-verb); }

.token-selection-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

.token-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  text-align: left;
  transition: border-color var(--trans-speed) ease, background-color var(--trans-speed) ease;
}

.token-card:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-focus);
}

.token-card.selected-correct {
  border-color: var(--status-success) !important;
  background: var(--type-neutral-alpha) !important;
}

.token-card.selected-wrong {
  border-color: var(--status-failure) !important;
  background: var(--type-feminin-alpha) !important;
}

.token-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
  width: 100%;
}

.token-kbd {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  background: var(--bg-app);
  border: 1px solid var(--border-subtle);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-secondary);
}

.token-type-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
}

.tag-maskulin { background: var(--type-maskulin-alpha); color: var(--type-maskulin); }
.tag-feminin { background: var(--type-feminin-alpha); color: var(--type-feminin); }
.tag-neutral { background: var(--type-neutral-alpha); color: var(--type-neutral); }
.tag-plural { background: var(--type-plural-alpha); color: var(--type-plural); }
.tag-verb { background: var(--type-verb-alpha); color: var(--type-verb); }

.token-val {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* CAJÓN FEYNMAN OCULTO HASTA INTERACCIÓN */
.feynman-drawer {
  background: var(--bg-surface);
  border: 1px solid var(--border-focus);
  border-radius: 8px;
  padding: 1.15rem 1.35rem;
  display: none;
  flex-direction: column;
  gap: 0.9rem;
  animation: drawerSlideIn 160ms var(--ease-out);
}

.feynman-drawer.active {
  display: flex;
}

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

.feynman-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.55rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feynman-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.feynman-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.score-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-ghost-code {
  background: var(--bg-app);
  border: 1px solid var(--border-focus);
  color: var(--type-maskulin);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-ghost-code:hover {
  background: var(--type-maskulin-alpha);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--status-idle);
}

.status-indicator.success { background-color: var(--status-success); }
.status-indicator.warning { background-color: var(--status-warning); }
.status-indicator.failure { background-color: var(--status-failure); }

.latency-indicator {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.ai-verdict-card {
  background: var(--bg-app);
  border: 1px solid var(--border-focus);
  border-radius: 6px;
  padding: 0.85rem 1rem;
}

.card-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
}

.feedback-text {
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.simplified-rule-box {
  margin-top: 0.6rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--type-neutral);
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.simplified-rule-box[hidden] {
  display: none !important;
}

.rule-prefix {
  font-weight: 600;
  color: var(--text-secondary);
}

.input-action-group {
  display: flex;
  gap: 0.5rem;
}

.input-action-group input {
  flex: 1;
}

.btn-solid {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-focus);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  padding: 0 0.95rem;
  height: 38px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-solid:hover {
  background: var(--bg-surface-active);
}

.btn-subtle-warning {
  background: var(--type-plural-alpha);
  border: 1px solid var(--status-warning);
  color: var(--status-warning);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  padding: 0 0.85rem;
  height: 38px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary-action {
  background: #2563EB;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0 1.1rem;
  height: 38px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  display: none;
}

.btn-primary-action:hover {
  background: #1D4ED8;
}

.btn-primary-action.visible {
  display: inline-flex;
  align-items: center;
}

/* VISTA LEXIKON (DER / DIE / DAS) */
.lexikon-container {
  max-width: 880px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.lexikon-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.85rem;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.lexikon-context-info {
  display: flex;
  flex-direction: column;
}

.lexikon-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lexikon-study-card {
  width: 100%;
  max-width: 640px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.65rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.26);
}

.lexikon-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.lexikon-meta-left,
.lexikon-meta-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cefr-pill,
.topic-pill,
.streak-pill,
.queue-counter-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-app);
  color: var(--text-secondary);
}

.cefr-pill {
  color: var(--type-maskulin);
  border-color: rgba(59, 130, 246, 0.35);
}

.streak-pill.mastered {
  color: var(--status-success);
  border-color: rgba(16, 185, 129, 0.35);
  background: var(--type-neutral-alpha);
}

.lexikon-stimulus-block {
  text-align: center;
  padding: 1rem 0.5rem;
  background: var(--bg-app);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
}

.lexikon-noun-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
}

.lexikon-article-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  height: 44px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1.5px dashed var(--border-focus);
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface);
  transition: all var(--trans-speed) ease;
}

.lexikon-article-slot.slot-der {
  border-style: solid;
  border-color: var(--type-maskulin);
  background: var(--type-maskulin-alpha);
  color: var(--type-maskulin);
}

.lexikon-article-slot.slot-die {
  border-style: solid;
  border-color: var(--type-feminin);
  background: var(--type-feminin-alpha);
  color: var(--type-feminin);
}

.lexikon-article-slot.slot-das {
  border-style: solid;
  border-color: var(--type-neutral);
  background: var(--type-neutral-alpha);
  color: var(--type-neutral);
}

.lexikon-lemma {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.lexikon-translation {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.lexikon-meaning-note {
  font-size: 0.84rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

.lexikon-article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.lexikon-reveal-box {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: drawerSlideIn 150ms var(--ease-out);
}

.lexikon-reveal-box[hidden] {
  display: none !important;
}

.lexikon-reveal-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0.85rem;
}

.reveal-item {
  background: var(--bg-app);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.75rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.reveal-context-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.reveal-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.reveal-value {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--type-plural);
}

.reveal-sentence {
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.45;
}

/* ANALIZADOR SINTÁCTICO (>_) BILINGÜE CON TRADUCCIÓN GLOBAL Y GLOSA */
.debug-container {
  max-width: 1060px;
  width: 100%;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.debug-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.85rem;
  gap: 1rem;
}

.debug-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.debug-label-row .form-label {
  margin-bottom: 0;
}

.btn-link-subtle {
  background: none;
  border: none;
  color: var(--type-maskulin);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-link-subtle:hover {
  opacity: 0.85;
}

.section-title {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
}

.section-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.sentence-translation-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--type-maskulin);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.45;
}

.sentence-translation-banner[hidden] {
  display: none !important;
}

.satzklammer-legend {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 0.25rem 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.satzklammer-legend[hidden] {
  display: none !important;
}

.legend-title {
  font-weight: 600;
  color: var(--text-muted);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-dot.dot-clamp {
  background-color: var(--type-verb);
}

.legend-dot.dot-mittelfeld {
  border: 1.5px dashed var(--text-secondary);
}

.syntax-pipeline-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 0.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.25rem;
  min-height: 160px;
}

.syntax-badge {
  background: var(--bg-app);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.4rem;
}

.syntax-badge.bracket-clamp {
  border-top: 3px solid var(--type-verb);
}

.syntax-badge.bracket-mittelfeld {
  border-top: 3px dashed var(--border-focus);
}

.badge-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.35rem;
}

.badge-header {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.badge-bracket-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
}

.badge-token {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.badge-gloss {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
  opacity: 0.9;
}

.badge-verb-meta {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--type-verb);
}

.badge-explanation {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.badge-footer {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  align-self: flex-start;
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
}

.syntax-badge.role-maskulin .badge-token { color: var(--type-maskulin); }
.syntax-badge.role-maskulin .badge-footer { background: var(--type-maskulin-alpha); color: var(--type-maskulin); }
.syntax-badge.role-feminin .badge-token { color: var(--type-feminin); }
.syntax-badge.role-feminin .badge-footer { background: var(--type-feminin-alpha); color: var(--type-feminin); }
.syntax-badge.role-neutral .badge-token { color: var(--type-neutral); }
.syntax-badge.role-neutral .badge-footer { background: var(--type-neutral-alpha); color: var(--type-neutral); }
.syntax-badge.role-plural .badge-token { color: var(--type-plural); }
.syntax-badge.role-plural .badge-footer { background: var(--type-plural-alpha); color: var(--type-plural); }
.syntax-badge.role-verb .badge-token { color: var(--type-verb); }
.syntax-badge.role-verb .badge-footer { background: var(--type-verb-alpha); color: var(--type-verb); }

.linksattribut-card {
  background: var(--bg-surface);
  border: 1px solid var(--type-maskulin);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}

.linksattribut-content {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-primary);
}

/* ESTADÍSTICAS Y ARMONÍA CROMÁTICA EN TARJETAS HISTÓRICAS */
.stats-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}

.kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.kpi-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-secondary);
}

.kpi-val {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 600;
}

.text-emerald { color: var(--status-success); }
.text-amber { color: var(--status-warning); }
.text-crimson { color: var(--status-failure); }

.stats-case-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}

.case-stat-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.65rem 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.stats-lexikon-panel {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stats-subtabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
  flex-wrap: wrap;
}

.batches-split-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1rem;
}

.batches-list, .attempts-list, .notebook-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 440px;
  overflow-y: auto;
}

.batch-row-card, .attempt-row-card, .notebook-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.8rem 0.95rem;
  transition: border-color var(--trans-speed) ease;
}

.batch-row-card {
  cursor: pointer;
}

.batch-row-card:hover, .batch-row-card.active {
  border-color: var(--type-maskulin);
}

.batch-detail-inspector {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1rem;
  max-height: 440px;
  overflow-y: auto;
}

.slot-audit-item {
  background: var(--bg-app);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.6rem;
  font-size: 0.84rem;
}

.slot-audit-item:last-child {
  margin-bottom: 0;
}

/* CÓDIGO CROMÁTICO DE ESTADOS EN HISTORIAL (MASTERED / LUCKY_GUESS / FAILED / IN_PROGRESS) */
.status-card-MASTERED {
  border-left: 3px solid var(--status-success);
}

.status-card-LUCKY_GUESS {
  border-left: 3px solid var(--status-warning);
}

.status-card-FAILED {
  border-left: 3px solid var(--status-failure);
}

.status-card-IN_PROGRESS {
  border-left: 3px solid var(--type-maskulin);
}

.status-badge-pill {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.status-pill-MASTERED {
  background: var(--type-neutral-alpha);
  border-color: var(--status-success);
  color: var(--status-success);
}

.status-pill-LUCKY_GUESS {
  background: var(--type-plural-alpha);
  border-color: var(--status-warning);
  color: var(--status-warning);
}

.status-pill-FAILED {
  background: var(--type-feminin-alpha);
  border-color: var(--status-failure);
  color: var(--status-failure);
}

.status-pill-IN_PROGRESS {
  background: var(--type-maskulin-alpha);
  border-color: var(--type-maskulin);
  color: var(--type-maskulin);
}

.history-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.filter-bar {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.empty-hint {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* PIE DE PÁGINA Y MODAL LEGAL (§ 5 DDG / DSGVO) */
.app-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 0.45rem max(1.25rem, env(safe-area-inset-right)) calc(0.45rem + env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
  z-index: 25;
}

.footer-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.footer-legal-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-legal-link {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  cursor: pointer;
  padding: 2px 4px;
}

.footer-legal-link:hover {
  color: var(--type-maskulin);
  text-decoration: underline;
}

.legal-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 15, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 100;
}

.legal-modal-backdrop[hidden] {
  display: none !important;
}

.legal-modal-card {
  width: 100%;
  max-width: 680px;
  max-height: 82dvh;
  background: var(--bg-surface);
  border: 1px solid var(--border-focus);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
}

.legal-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.35rem;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-modal-body {
  padding: 1.35rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.legal-doc-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-primary);
}

.legal-code-comment {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--type-maskulin);
  margin-top: 0.4rem;
}

.legal-muted {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.legal-doc-content a {
  color: var(--type-maskulin);
  text-decoration: none;
}

.legal-doc-content a:hover {
  text-decoration: underline;
}

/* TABLET / IPAD (769px - 1024px) — CENTRADO VERTICAL EQUILIBRADO */
@media (min-width: 769px) and (max-width: 1024px) {
  .module-selector {
    display: none;
  }

  .mobile-nav-select {
    display: block;
    width: auto;
    min-width: 210px;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    padding: 0.42rem 0.65rem;
  }

  .workspace-container {
    justify-content: center;
    padding: 2rem 1.75rem;
  }

  .token-card {
    min-height: 64px;
  }
}

/* MÓVIL / SMARTPHONES (<= 768px) — CABECERA EN 2 FILAS SIN DESBORDAMIENTO Y CUADRÍCULA 2x2 */
@media (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }

  .top-nav {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    row-gap: 0.5rem;
    column-gap: 0.5rem;
    padding-top: calc(0.5rem + env(safe-area-inset-top));
    padding-bottom: 0.55rem;
    padding-left: max(0.85rem, env(safe-area-inset-left));
    padding-right: max(0.85rem, env(safe-area-inset-right));
    height: auto;
  }

  .nav-left {
    display: contents;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .nav-right {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    gap: 0.4rem;
  }

  .module-selector {
    display: none !important;
  }

  .nav-module-actions {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
  }

  .mobile-nav-select {
    display: block;
    flex: 1;
    min-width: 0;
    height: 38px;
    padding: 0 0.65rem;
    font-family: var(--font-mono);
    font-size: 14px !important;
  }

  .btn-generator-trigger {
    height: 38px;
    padding: 0 0.75rem;
    display: inline-flex;
    align-items: center;
  }

  .telemetry-streak-col {
    display: none;
  }

  .telemetry-pill {
    padding: 3px 8px;
    gap: 0.45rem;
  }

  .auth-card {
    padding: 1.5rem 1.25rem;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .workspace-container,
  .lexikon-container {
    padding: 1rem 0.9rem;
    justify-content: flex-start;
    gap: 1.15rem;
  }

  .ide-canvas-row {
    flex-direction: column;
    gap: 0.65rem;
  }

  .batch-nodes-rail {
    flex-direction: row;
    justify-content: space-around;
    padding: 0.45rem;
  }

  .sentence-canvas {
    padding: 1.5rem 1.15rem;
  }

  .sentence-display {
    font-size: 1.22rem;
  }

  .token-selection-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .token-card {
    min-height: 64px;
    padding: 0.85rem;
  }

  .lexikon-study-card {
    padding: 1.35rem 1.1rem;
  }

  .lexikon-reveal-grid {
    grid-template-columns: 1fr;
  }

  .input-action-group {
    flex-direction: column;
  }

  .stats-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .batches-split-layout {
    grid-template-columns: 1fr;
  }

  .generator-popover {
    right: 0;
    left: auto;
    width: 290px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.25rem;
  }
}

/* ERGONOMÍA TÁCTIL (APPLE HIG EN PANTALLAS TÁCTILES) */
@media (pointer: coarse) {
  .batch-node {
    width: 30px;
    height: 30px;
    font-size: 0.74rem;
  }

  .btn-solid,
  .btn-primary-action,
  .btn-subtle-warning {
    min-height: 42px;
  }
}

/* BLINDAJE DE FOCO Y SELECCIÓN EN CAMPOS DE ENTRADA */
input, textarea, select {
  user-select: text !important;
  -webkit-user-select: text !important;
  pointer-events: auto !important;
  transform: none !important;
}

input:focus, textarea:focus, select:focus {
  user-select: text !important;
  -webkit-user-select: text !important;
}

/* EXPLICACIÓN CANÓNICA POST-VALIDACIÓN Y SPINNER DE COMPILACIÓN DE LOTE */
.canonical-explanation-text {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.canonical-explanation-text[hidden] {
  display: none !important;
}

.canvas-compiling-state {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.compiling-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border-focus);
  border-top-color: var(--type-maskulin);
  border-radius: 50%;
  animation: satztypSpin 700ms linear infinite;
  flex-shrink: 0;
}

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