*,*::before,*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Arial, sans-serif;
  background: #f7f6f2;
  color: #1f1f1d;
  line-height: 1.5;
  padding: 24px 16px 60px;
}
.container { max-width: 1100px; margin: 0 auto; }

header { margin-bottom: 18px; }
h1 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 6px; font-weight: 600; }
.subtitle { color: #5f5e5a; font-size: 14px; margin: 0; max-width: 720px; }

.info-banner {
  background: #fff;
  border: 1px solid #e5e3da;
  border-left: 3px solid #1d9e75;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 22px;
  font-size: 13px;
  color: #444441;
}
.info-banner strong { color: #1f1f1d; font-weight: 600; }

.cell-toggle {
  display: flex;
  gap: 4px;
  background: #ebe9e1;
  padding: 4px;
  border-radius: 8px;
  width: fit-content;
  margin-bottom: 18px;
}
.toggle-btn {
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #5f5e5a;
  font-weight: 500;
  font-family: inherit;
  transition: all 0.15s;
}
.toggle-btn.active {
  background: #fff;
  color: #1f1f1d;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.cell-area {
  background: #fff;
  border: 1px solid #e5e3da;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 18px;
}
#cell-svg {
  width: 100%;
  height: auto;
  display: block;
}

.organelle {
  cursor: pointer;
  transition: opacity 0.15s, filter 0.15s;
}
.organelle:hover {
  filter: brightness(1.1) drop-shadow(0 0 4px rgba(0,0,0,0.2));
}
.organelle.selected {
  filter: drop-shadow(0 0 6px rgba(24,95,165,0.6));
}
.org-label {
  font-size: 11px;
  font-weight: 500;
  fill: #1f1f1d;
  pointer-events: none;
  text-anchor: middle;
}

.organelle-detail {
  background: #fff;
  border: 1px solid #e5e3da;
  border-radius: 10px;
  padding: 22px 24px;
  margin-bottom: 22px;
  min-height: 140px;
}
.detail-empty {
  color: #888780;
  font-style: italic;
  text-align: center;
  padding: 20px 0;
}
.detail-name {
  font-size: 22px;
  margin: 0 0 4px;
  font-weight: 600;
}
.detail-also {
  font-size: 13px;
  color: #5f5e5a;
  margin: 0 0 14px;
  font-style: italic;
}
.detail-row {
  margin-bottom: 12px;
}
.detail-label {
  font-size: 11px;
  color: #5f5e5a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  margin-bottom: 4px;
}
.detail-value {
  font-size: 14px;
  color: #1f1f1d;
  line-height: 1.6;
}
.detail-tag {
  display: inline-block;
  background: #f7f6f2;
  border-radius: 12px;
  padding: 3px 10px;
  font-size: 11.5px;
  color: #5f5e5a;
  margin-right: 6px;
  margin-top: 4px;
}
.detail-tag.both { background: #e1f5ee; color: #04342c; }
.detail-tag.plant-only { background: #eaf3de; color: #173404; }
.detail-tag.animal-only { background: #fbeaf0; color: #4b1528; }

.comparison {
  background: #fff;
  border: 1px solid #e5e3da;
  border-radius: 10px;
  padding: 18px 22px;
}
.comparison h2 { font-size: 16px; margin: 0 0 14px; font-weight: 600; }
.comp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 600px) {
  .comp-grid { grid-template-columns: 1fr 1fr; }
}
.comp-col h3 {
  font-size: 13px;
  margin: 0 0 8px;
  font-weight: 600;
  color: #5f5e5a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.comp-col ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: #1f1f1d;
  line-height: 1.7;
}
.comp-col li { margin-bottom: 6px; }
.comp-col strong { color: #1f1f1d; font-weight: 600; }

footer {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid #e5e3da;
  font-size: 12.5px;
  color: #5f5e5a;
  line-height: 1.6;
}
footer .brand { font-weight: 600; color: #1f1f1d; }
