/* ============================================
   食品安全教育テスト — Design System
   ============================================ */
:root {
  --primary: #2c567a;
  --primary-light: #3a7cb8;
  --primary-dark: #1a3a54;
  --accent: #e0872a;
  --accent-light: #f5a623;
  --success: #16a34a;
  --success-bg: #dcfce7;
  --danger: #dc2626;
  --danger-bg: #fee2e2;
  --warning: #d97706;
  --warning-bg: #fef3c7;
  --ink: #1b2533;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f1f5f9;
  --bg: #f8fafc;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(27, 37, 51, 0.08);
  --shadow-lg: 0 12px 40px rgba(27, 37, 51, 0.12);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 15px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  line-height: 1.4;
}

/* ---------- Layout ---------- */
.container {
  max-width: 580px;
  margin: 0 auto;
  padding: 24px 16px 80px;
  flex: 1;
  width: 100%;
}

/* ---------- Header ---------- */
.header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1100px; /* Increased from 580px */
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: clamp(12px, 2.5vw, 16px);
  color: var(--primary);
  flex: 0 1 auto; /* Don't force growth, but allow shrink */
  min-width: 120px;
  max-width: 300px; /* Allow more width than before */
}

.logo span {
  white-space: normal;
  line-height: 1.1;
  word-break: break-word; /* Better wrapping */
}

.logo img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto; /* Don't shrink the right side */
}

.lang-selector {
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink);
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.header-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-btn {
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 3px;
}

.nav-btn .btn-text {
  display: inline;
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0 8px;
    gap: 4px;
  }
  
  .logo {
    max-width: 100px;
  }

  .nav-btn .btn-text {
    display: none; /* Hide text, keep emoji on very small screens */
  }
  
  .nav-btn {
    padding: 6px;
    font-size: 16px; /* Larger emoji */
  }
}

.nav-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.nav-btn.danger {
  color: var(--danger);
  border-color: var(--danger);
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  animation: fadeUp 0.4s ease;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.card-icon.blue {
  background: rgba(44, 86, 122, 0.1);
}

.card-icon.orange {
  background: rgba(224, 135, 42, 0.1);
}

.card-icon.green {
  background: rgba(22, 163, 74, 0.1);
}

.card-icon.red {
  background: rgba(220, 38, 38, 0.1);
}

.card-icon.purple {
  background: rgba(139, 92, 246, 0.1);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(44, 86, 122, 0.25);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(44, 86, 122, 0.3);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(224, 135, 42, 0.25);
}

.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(224, 135, 42, 0.3);
}

.btn-outline {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: rgba(44, 86, 122, 0.05);
}

.btn-success {
  background: var(--success);
  color: var(--white);
}

.btn-danger {
  background: var(--danger);
  color: var(--white);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn-group {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.btn-group .btn {
  flex: 1;
}

/* ---------- Forms ---------- */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  transition: var(--transition);
  background: var(--white);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(44, 86, 122, 0.1);
}

/* Role selector */
.role-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.role-option {
  padding: 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
}

.role-option:hover {
  border-color: var(--primary-light);
}

.role-option.active {
  border-color: var(--primary);
  background: rgba(44, 86, 122, 0.05);
}

.role-option .role-icon {
  font-size: 28px;
  margin-bottom: 6px;
}

.role-option .role-name {
  font-weight: 700;
  font-size: 14px;
}

/* ---------- Alert / Messages ---------- */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  animation: fadeUp 0.3s ease;
}

.alert-danger {
  background: var(--danger-bg);
  color: var(--danger);
}

.alert-success {
  background: var(--success-bg);
  color: var(--success);
}

.alert-warning {
  background: var(--warning-bg);
  color: var(--warning);
}

/* ---------- Page Title ---------- */
.page-title {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 6px;
  color: var(--primary-dark);
}

.page-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}

/* ---------- Course List ---------- */
.course-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  animation: fadeUp 0.4s ease backwards;
}

.course-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.course-card:nth-child(1) {
  animation-delay: 0s;
}

.course-card:nth-child(2) {
  animation-delay: 0.05s;
}

.course-card:nth-child(3) {
  animation-delay: 0.1s;
}

.course-card:nth-child(4) {
  animation-delay: 0.15s;
}

.course-card:nth-child(5) {
  animation-delay: 0.2s;
}

.course-num {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  flex-shrink: 0;
}

.course-info {
  flex: 1;
  min-width: 0;
}

.course-title {
  font-weight: 700;
  font-size: 15px;
}

.course-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.course-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

.badge-passed {
  background: var(--success-bg);
  color: var(--success);
}

.badge-not {
  background: var(--soft);
  color: var(--muted);
}

/* ---------- Slides ---------- */
.slide-container {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.slide-progress {
  height: 4px;
  background: var(--soft);
}

.slide-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transition: width 0.4s ease;
  border-radius: 0 2px 2px 0;
}

.slide-content {
  padding: 28px 24px;
  min-height: 300px;
  animation: fadeIn 0.35s ease;
}

.slide-number {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(44, 86, 122, 0.08);
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 16px;
}

.slide-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 16px;
  line-height: 1.4;
}

.slide-body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: 20px;
}

.slide-points {
  list-style: none;
  padding: 0;
}

.slide-points li {
  padding: 10px 14px;
  background: var(--soft);
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.slide-points li::before {
  content: '✓';
  color: var(--success);
  font-weight: 900;
  flex-shrink: 0;
}

.slide-nav {
  display: flex;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  background: var(--soft);
}

/* ---------- Quiz ---------- */
.quiz-header {
  text-align: center;
  margin-bottom: 20px;
}

.quiz-progress-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.quiz-progress-bar {
  height: 6px;
  background: var(--soft);
  border-radius: 3px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.4s ease;
  border-radius: 3px;
}

.quiz-question {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  animation: fadeUp 0.35s ease;
}

.quiz-q-text {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 20px;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-option {
  padding: 16px 20px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
  text-align: center;
}

.quiz-option:hover {
  border-color: var(--primary-light);
  background: rgba(44, 86, 122, 0.03);
}

.quiz-option.correct {
  border-color: var(--success);
  background: var(--success-bg);
  color: var(--success);
  animation: pulse 0.3s ease;
}

.quiz-option.incorrect {
  border-color: var(--danger);
  background: var(--danger-bg);
  color: var(--danger);
  animation: shake 0.4s ease;
}

.quiz-option:disabled {
  cursor: default;
}

.quiz-feedback {
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  animation: fadeUp 0.3s ease;
}

.quiz-feedback.correct {
  background: var(--success-bg);
  color: var(--success);
}

.quiz-feedback.incorrect {
  background: var(--danger-bg);
  color: var(--danger);
}

/* ---------- Results ---------- */
.result-card {
  text-align: center;
  padding: 32px 24px;
}

.result-icon {
  font-size: 64px;
  margin-bottom: 16px;
  animation: bounceIn 0.6s ease;
}

.result-title {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 8px;
}

.result-score {
  font-size: 40px;
  font-weight: 900;
  color: var(--primary);
  margin: 16px 0;
}

.result-message {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.wrong-list {
  text-align: left;
  margin: 16px 0 24px;
}

.wrong-item {
  padding: 12px 14px;
  background: var(--danger-bg);
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--danger);
}

.wrong-item .correct-answer {
  display: block;
  color: var(--success);
  margin-top: 4px;
}

/* ---------- Admin Dashboard ---------- */
.admin-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-value {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary);
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.admin-code-box {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
}

.admin-code-label {
  font-size: 13px;
  opacity: 0.8;
  margin-bottom: 6px;
}

.admin-code-value {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 6px;
  font-family: monospace;
}

.admin-code-hint {
  font-size: 11px;
  opacity: 0.7;
  margin-top: 8px;
}

.btn-copy-code {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  padding: 8px 20px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-copy-code:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-copy-code.copied {
  background: var(--success);
  border-color: var(--success);
}

.contact-box {
  text-align: center;
  padding: 20px;
  background: var(--soft);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.contact-box p {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

/* Employee table */
.emp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.emp-table th {
  background: var(--soft);
  padding: 10px 8px;
  font-weight: 700;
  text-align: center;
  border: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}

.emp-table td {
  padding: 10px 8px;
  border: 1px solid var(--line);
  text-align: center;
}

.emp-table td:first-child {
  text-align: left;
  font-weight: 600;
}

.emp-table .pass {
  color: var(--success);
  font-weight: 700;
}

.emp-table .not-done {
  color: var(--muted);
}

.emp-table .fail {
  color: var(--danger);
  font-weight: 700;
}

.score-text {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
}

/* ---------- Tab Navigation ---------- */
.tabs {
  display: flex;
  border-bottom: 2px solid var(--line);
  margin-bottom: 20px;
  gap: 0;
}

.tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ---------- Auth page ---------- */
.auth-hero {
  text-align: center;
  padding: 40px 0 24px;
}

.auth-hero img {
  width: 56px;
  margin: 0 auto 16px;
}

.auth-hero h1 {
  font-size: 24px;
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.auth-hero p {
  font-size: 14px;
  color: var(--muted);
}

.auth-toggle {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

.auth-toggle a {
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
}

.auth-toggle a:hover {
  text-decoration: underline;
}

.forgot-password {
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
}

.forgot-password a {
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
}

.forgot-password a:hover {
  color: var(--primary);
}

/* ---------- Loading spinner ---------- */
.loading-spinner {
  text-align: center;
  padding: 60px 0;
  color: var(--muted);
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--line);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-6px);
  }

  40%,
  80% {
    transform: translateX(6px);
  }
}

@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }

  50% {
    transform: scale(1.05);
  }

  70% {
    transform: scale(0.95);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .container {
    padding: 16px 12px 80px;
  }

  .card {
    padding: 18px;
  }

  .slide-content {
    padding: 20px 16px;
  }

  .slide-title {
    font-size: 18px;
  }

  .page-title {
    font-size: 20px;
  }

  .admin-stats {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .stat-value {
    font-size: 24px;
  }
}

/* ---------- Utility ---------- */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--muted);
}

.text-sm {
  font-size: 13px;
}

.mt-8 {
  margin-top: 8px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.mb-16 {
  margin-bottom: 16px;
}

.hidden {
  display: none !important;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 3px;
}

/* スマホ用のレスポンシブ調整 */
@media (max-width: 600px) {
  #appHeaderTitle {
    display: none;
  }

  .header-inner {
    padding: 0 8px;
  }

  .header-right {
    gap: 4px;
  }

  .nav-btn {
    padding: 6px 8px;
    font-size: 12px;
  }

  .lang-selector {
    padding: 4px 4px;
    font-size: 11px;
    }
}

/* ---------- Microbe Summary Table (Optimized) ---------- */
.microbe-summary-container {
  margin-bottom: 32px;
  overflow-x: auto;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  animation: fadeUp 0.5s ease;
  max-height: 80vh; /* Ensure it doesn't take over whole page if rows increase */
}

.microbe-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
  font-size: 13px; /* Slightly smaller */
}

.microbe-table th {
  background: var(--primary);
  color: var(--white);
  padding: 10px 12px;
  text-align: left;
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 10;
}

.microbe-table td {
  padding: 8px 12px; /* Compact padding */
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.4;
}

.microbe-table tr {
  transition: var(--transition);
  cursor: pointer;
}

.microbe-table tr:hover {
  background: rgba(44, 86, 122, 0.04);
}

.microbe-table tr:last-child td {
  border-bottom: none;
}

.table-microbe-name {
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}

.table-incubation {
  color: var(--accent);
  font-weight: 600;
  white-space: normal; /* Allow wrap for long incubation text */
  min-width: 80px;
}

/* ---------- Integrated Microbe Details ---------- */
.integrated-microbe-list {
  margin-top: 40px;
}

.integrated-microbe-section {
  scroll-margin-top: 80px; /* Offset for sticky header */
  margin-bottom: 48px;
  border-top: 2px solid var(--line);
  padding-top: 32px;
}

.integrated-microbe-section:first-child {
  border-top: none;
  padding-top: 0;
}

.integrated-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.integrated-detail-img {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.integrated-detail-title h2 {
  font-size: 24px;
  font-weight: 900;
  color: var(--primary-dark);
}

.integrated-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.integrated-detail-box {
  background: var(--soft);
  padding: 16px;
  border-radius: var(--radius-sm);
}

.integrated-detail-box h4 {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.integrated-detail-content {
  font-size: 15px;
  font-weight: 500;
}

@media (max-width: 600px) {
  .microbe-summary-container {
    margin-left: -16px;
    margin-right: -16px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  
  .integrated-detail-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .integrated-detail-img {
    width: 60px;
    height: 60px;
  }
}
