:root {
  --bg-color: #0b0f19;
  --card-bg: rgba(20, 27, 45, 0.85);
  --card-border: rgba(255, 255, 255, 0.1);
  --card-hover: rgba(30, 41, 69, 0.95);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-red: #ef4444;
  --accent-red-glow: rgba(239, 68, 68, 0.3);
  --accent-cyan: #38bdf8;
  --accent-green: #22c55e;
  --accent-amber: #f59e0b;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html, body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Background glows */
.background-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(140px);
  z-index: 0;
  pointer-events: none;
}
.top-left {
  top: -120px;
  left: -100px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.2) 0%, transparent 70%);
}
.bottom-right {
  bottom: -120px;
  right: -100px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.16) 0%, transparent 70%);
}

.container {
  position: relative;
  z-index: 1;
  max-width: 1024px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Glass card styling */
.glass {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-lg);
}

/* Top bar with language switcher and status */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 999px;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--accent-green);
}
.status-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.lang-switcher {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 3px;
}
.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.825rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}
.lang-btn.active {
  background: var(--accent-red);
  color: #fff;
  box-shadow: 0 2px 8px var(--accent-red-glow);
}

/* Header */
.header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 40%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 600px;
}

/* Navigation Tabs */
.tabs-nav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 0.5rem;
  overflow-x: auto;
}
.nav-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.925rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.nav-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}
.nav-tab.active {
  color: #fff;
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
}

/* Tab Panes */
.tab-pane {
  display: none;
  flex-direction: column;
  gap: 1.25rem;
}
.tab-pane.active {
  display: flex;
}

/* Form Sections */
.form-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.select-input, .text-input, .textarea-input {
  background: rgba(10, 15, 26, 0.85);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
  max-width: 100%;
}
.select-input:focus, .text-input:focus, .textarea-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}
.textarea-input {
  width: 100%;
  resize: vertical;
  min-height: 70px;
  line-height: 1.5;
}

/* Score Buttons [0..4] (Phone Touch Friendly & Large Targets) */
.criterion-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
  transition: all 0.2s ease;
}
.criterion-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}
@media (max-width: 768px) {
  .criterion-card {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }
}

.criterion-header {
  flex: 1;
  min-width: 0;
}
.criterion-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  display: block;
}
.criterion-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  line-height: 1.4;
}

/* Score Selector Buttons (0 1 2 3 4) - Large touch targets for phone field use */
.score-selector {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.score-btn {
  width: 48px;
  height: 48px;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.score-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}
.score-btn:active {
  transform: scale(0.95);
}
.score-btn.active {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #fff;
  box-shadow: 0 4px 14px var(--accent-red-glow), inset 0 0 8px rgba(255, 255, 255, 0.3);
  font-weight: 800;
}

/* Indication Cards (Section II) */
.indication-card {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.indication-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.75rem;
}
.indication-header strong {
  font-size: 1.05rem;
  color: var(--accent-cyan);
}
.indication-header input.text-input {
  flex: 1;
  min-width: 200px;
  max-width: 340px;
}
@media (max-width: 520px) {
  .indication-header {
    flex-direction: column;
    align-items: stretch;
  }
  .indication-header input.text-input {
    max-width: 100%;
    width: 100%;
  }
}
.indication-subrow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.criterion-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.criterion-label {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-main);
}
.score-buttons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  max-width: 380px;
}
.btn-score {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.65rem 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  touch-action: manipulation;
}
.btn-score:hover {
  background: rgba(255, 255, 255, 0.12);
}
.btn-score.active {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #fff;
  box-shadow: 0 4px 12px var(--accent-red-glow);
}

/* Figurant Blocks */
.fig-block {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  border-left: 3px solid var(--accent-cyan);
}
.fig-header {
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent-cyan);
}
.fig-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.fig-role-label {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

/* Penalty Counter */
.counter-box {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
}
.btn-counter {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--card-border);
  color: #fff;
  font-size: 1.25rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.counter-val {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}

/* Calculation summary card */
.calc-card {
  padding: 1.5rem;
  background: linear-gradient(145deg, rgba(20, 27, 45, 0.95), rgba(15, 20, 35, 0.98));
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.calc-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.calc-item-title {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.calc-item-val {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}
.calc-final {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.final-score-val {
  font-size: 2rem;
  font-family: var(--font-mono);
  font-weight: 800;
  color: #fff;
}
.verdict-badge {
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.verdict-passed {
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.3);
}
.verdict-failed {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid var(--accent-red);
  color: var(--accent-red);
  box-shadow: 0 0 16px var(--accent-red-glow);
}

/* Matrix Table */
.matrix-container {
  overflow-x: auto;
}
.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  text-align: left;
}
.matrix-table th {
  padding: 0.75rem 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--card-border);
}
.matrix-table td {
  padding: 0.75rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.col-bib {
  font-family: var(--font-mono);
  font-weight: 700;
}
.col-score {
  font-family: var(--font-mono);
  color: var(--text-muted);
}
.col-score.score-ok {
  color: var(--accent-green);
  font-weight: 600;
}
.col-mean {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #fff;
}

.tag {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.tag-passed {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.3);
  color: var(--accent-green);
  font-weight: 700;
}
.tag-failed {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  font-weight: 700;
}

/* Progress bar */
.progress-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}
.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-green));
  transition: width 0.3s ease;
}

/* Primary Button */
.btn-primary {
  background: var(--accent-red);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 4px 16px var(--accent-red-glow);
  transition: all 0.2s ease;
}
.btn-primary:hover {
  background: #dc2626;
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--card-border);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
}
.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  width: 100%;
}

/* Session & Persona Bar (Responsive CSS Grid - Zero Overlap) */
.session-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: rgba(17, 24, 39, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

@media (max-width: 900px) {
  .session-bar {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    padding: 1.15rem;
  }
}

.session-bar-item {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
  width: 100%;
}

.session-bar-action {
  display: flex;
  align-items: flex-end;
  min-width: 0;
}

.bar-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.session-bar .select-input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  background: rgba(10, 15, 26, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  color: #fff;
  height: 44px;
  padding: 0 0.85rem;
  font-size: 0.925rem;
  transition: all 0.2s ease;
}

.session-bar .select-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

.session-bar button#btn-open-setup {
  height: 44px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

@media (max-width: 900px) {
  .session-bar-action,
  .session-bar button#btn-open-setup {
    width: 100%;
  }
}

/* Persona Banner */
.persona-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.15), rgba(34, 197, 94, 0.12));
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
@media (max-width: 600px) {
  .persona-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
.persona-icon {
  font-size: 2rem;
}
.persona-title {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}
.persona-subtitle {
  font-size: 0.85rem;
  color: var(--accent-cyan);
}

/* Word Sheet Replica */
.word-sheet {
  border: 2px solid rgba(255, 255, 255, 0.15);
}
.word-sheet-header {
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
}
.official-stamp {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.badge-redog {
  background: #dc2626;
  color: #fff;
  font-weight: 900;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.85rem;
  letter-spacing: 1px;
}
.stamp-title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
}
.sheet-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}
.meta-item {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.meta-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.meta-val {
  font-size: 0.95rem;
  color: #fff;
}

/* Bib Selector Tactile Chips */
.bib-selector-section {
  margin-bottom: 1.25rem;
}
.badge-eval-status {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.badge-eval-done {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  color: var(--accent-green);
}
.bib-chips-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.5rem;
}
@media (max-width: 600px) {
  .bib-chips-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.bib-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.3rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}
.bib-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}
.bib-chip.active {
  background: var(--accent-cyan);
  color: #0b0f19;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}
.bib-chip.evaluated {
  border-color: rgba(34, 197, 94, 0.6);
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
}
.bib-chip.active.evaluated {
  background: var(--accent-green);
  color: #0b0f19;
}
.chip-score {
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0.85;
  margin-top: 2px;
}

/* Participant Card */
.participant-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.part-bib-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-cyan);
  color: #0b0f19;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  flex-shrink: 0;
}
.part-details {
  flex: 1;
  min-width: 200px;
}
.part-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}
.part-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.suchzeit-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}
.suchzeit-block label {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.input-time {
  width: 55px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 0.4rem 0.5rem;
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 700;
}

/* Subtotal Bar */
.subtotal-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  font-size: 0.875rem;
}
.score-highlight {
  color: var(--accent-cyan);
  font-size: 1rem;
  font-family: var(--font-mono);
}

/* Calc Summary Card */
.calc-summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: linear-gradient(135deg, rgba(30, 41, 69, 0.95), rgba(15, 23, 42, 0.95));
  border: 2px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.score-display-box {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.score-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.score-number {
  font-size: 2.25rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #fff;
}
.score-status {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  display: inline-block;
  width: fit-content;
}
.score-passed {
  background: rgba(34, 197, 94, 0.2);
  color: var(--accent-green);
  border: 1px solid var(--accent-green);
}
.score-failed {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid #ef4444;
}
.submit-action-box {
  flex: 1;
  min-width: 260px;
}

/* Stepper Fausses Annonces */
.penalty-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
}
.stepper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.btn-step {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.btn-step:hover {
  background: rgba(255, 255, 255, 0.2);
}
.stepper-val {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-mono);
  min-width: 24px;
  text-align: center;
}

/* Radio buttons toggle */
.radio-toggle-group {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}
.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid var(--card-border);
}
.radio-label:has(input:checked) {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--accent-cyan);
}

/* Setup Wizard styles */
.place-config-block {
  border-left: 4px solid var(--accent-cyan);
}
.place-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.inline-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.participants-setup-table-wrapper {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
}
.participants-setup-table {
  width: 100%;
  border-collapse: collapse;
}
.participants-setup-table th, .participants-setup-table td {
  padding: 0.5rem 0.6rem;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.participants-setup-table th {
  background: rgba(0, 0, 0, 0.4);
  position: sticky;
  top: 0;
  z-index: 2;
}
.input-table {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: #fff;
  padding: 0.35rem 0.5rem;
  font-size: 0.85rem;
}

/* Footer */
.footer {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #64748b;
  font-size: 0.85rem;
}

