.section-label {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  padding: 4px 12px;
  border-radius: 5px;
  margin-bottom: 6px;
}
.section-label.GE {
  background: rgba(91, 189, 189, 0.15);
  color: #5bbdbd;
}
.section-label.ST {
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
}
.section-label.EN {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
}
.section-label.NS {
  background: rgba(232, 93, 106, 0.12);
  color: #e85d6a;
}
.section-label.MI {
  background: rgba(129, 140, 248, 0.12);
  color: #818cf8;
}
.section-label.IN {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.4);
}
.section-label.DI {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
}
.question-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  animation: fadeUp 0.3s ease;
}
.question-card .q-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.question-card .q-id {
  font-size: var(--font-label);
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0;
}
.question-card .q-section {
  margin-bottom: 0;
}
.question-card .q-text {
  font-family: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'URW Palladio L',
    serif;
  font-size: var(--font-question);
  font-weight: 600;
  margin-bottom: 24px;
  line-height: 1.55;
  letter-spacing: 0;
  color: var(--text);
}
.question-card .q-meta {
  font-size: var(--font-help);
  color: var(--muted);
  margin-bottom: 20px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.question-card #answerArea {
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}
.question-card textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  resize: vertical;
  min-height: 72px;
  outline: none;
  transition: all 0.2s;
  line-height: 1.55;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}
.question-card textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91, 189, 189, 0.1);
  background: rgba(255, 255, 255, 0.06);
}
.question-card textarea::placeholder {
  color: var(--muted);
  opacity: 0.5;
}
.qcard-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.qcard-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.question-nav {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-top: 20px;
}
.question-nav .left,
.question-nav .right {
  display: flex;
  gap: 8px;
}
.question-nav button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none !important;
}
.question-list-toggle {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 0 4px;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.question-list-toggle:hover {
  color: rgba(255, 255, 255, 0.8);
}
.question-hint-toggle {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  padding: 2px 0 4px;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.question-hint-toggle:hover {
  color: rgba(255, 255, 255, 0.8);
}
.question-hint {
  font-size: var(--font-help);
  color: var(--muted);
}
.question-hint-inner {
  padding: 10px 0 2px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 6px;
}
.question-hint .hint-gap {
  color: var(--warning);
}
.question-hint .hint-fuente {
  color: var(--muted);
}
.question-list {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s ease,
    margin 0.3s;
  opacity: 0;
  margin-top: 0;
}
.question-list.open {
  max-height: 600px;
  opacity: 1;
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
  overflow-y: auto;
}
.question-list::-webkit-scrollbar {
  width: 4px;
}
.question-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}
.question-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
  color: rgba(255, 255, 255, 0.6);
}
.question-list-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.8);
}
.question-list-item.active {
  background: rgba(91, 189, 189, 0.1);
  font-weight: 500;
  color: var(--primary);
}
.question-list-item .qid {
  font-size: 11px;
  color: var(--muted);
  min-width: 62px;
  font-variant-numeric: tabular-nums;
}
.qsec {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 5px;
  border-radius: 3px;
  min-width: 42px;
  text-align: center;
}
.question-list-item .qtext {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.question-list-item .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.3s;
}
.question-list-item .dot.answered {
  background: var(--success);
}
.question-list-item .dot.unanswered {
  background: rgba(255, 255, 255, 0.12);
}
.question-list-item .dot.skipped {
  background: transparent;
  border: 1px dashed var(--muted);
}
.question-list-item.skipped {
  opacity: 0.5;
}
.question-list-group {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 4px;
  margin-top: 8px;
}
.question-list-group:first-child {
  margin-top: 0;
}
.question-list-group.skipped {
  opacity: 0.6;
}
.question-list-group .count {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-left: auto;
}
.section-skip-btn {
  background: var(--accent-light);
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.section-skip-btn:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}
.section-skip-btn.skipped {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.skip-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--primary-soft);
  border: 1px solid var(--primary-dark);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 18px;
  font-size: var(--font-help);
  color: var(--text);
}
.skip-banner button {
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .qcard-topbar {
    margin-bottom: 6px;
  }
  .qcard-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 500;
    background: #0a1719;
    margin: 0 !important;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.3);
  }
  .qcard-nav .btn {
    flex: 1;
  }
}
