.photosynthesis-light-intensity {
  --interactive-water: #eaf2f8;
  --interactive-water-edge: #cfdde8;
  --interactive-pondweed: #1daa19;
  --interactive-accent: #2f6db3;
  --interactive-glow: rgba(230, 227, 131, 0.78);

  width: 100%;
  max-width: 920px;
  min-width: 0;
  margin: 2rem auto;
  container-type: inline-size;
}

[data-md-color-scheme="slate"] .photosynthesis-light-intensity {
  --interactive-water: #1b2530;
  --interactive-water-edge: #2b3a48;
  --interactive-pondweed: #4bcf63;
  --interactive-accent: #8db9ff;
  --interactive-glow: rgba(230, 227, 131, 0.42);
}

.photosynthesis-light-intensity,
.photosynthesis-light-intensity * {
  box-sizing: border-box;
}

.photosynthesis-light-intensity p,
.photosynthesis-light-intensity table {
  margin: 0;
}

.photosynthesis-light-intensity__card {
  background: var(--wiki-surface);
  border: 1px solid var(--wiki-line);
  border-radius: var(--wiki-radius-lg);
  box-shadow: var(--wiki-shadow);
  padding: 1.35rem;
}

.photosynthesis-light-intensity__card + .photosynthesis-light-intensity__card {
  margin-top: 1.25rem;
}

.photosynthesis-light-intensity__scene {
  position: relative;
  aspect-ratio: 2 / 1;
  background: linear-gradient(180deg, var(--wiki-surface-soft) 0%, color-mix(in srgb, var(--wiki-surface-soft) 90%, var(--wiki-bg)) 100%);
  border: 1px solid var(--wiki-line);
  border-radius: var(--wiki-radius-md);
  overflow: hidden;
}

.photosynthesis-light-intensity__lamp-wrap {
  position: absolute;
  top: 50%;
  transform: translateY(-58%);
  right: 37.5%;
  width: 32%;
  transition: right 350ms ease;
}

.photosynthesis-light-intensity__beaker-wrap {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: 28%;
  aspect-ratio: 1 / 1;
}

.photosynthesis-light-intensity__lamp-wrap svg,
.photosynthesis-light-intensity__beaker-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

.photosynthesis-light-intensity__lamp-glow {
  fill: var(--interactive-glow);
  stroke: var(--wiki-text);
  stroke-width: 1.4;
  filter: drop-shadow(0 0 10px var(--interactive-glow));
}

.photosynthesis-light-intensity__lamp-body {
  fill: color-mix(in srgb, var(--wiki-surface-soft) 65%, #d8d8d8);
  stroke: var(--wiki-text);
  stroke-width: 1.4;
}

.photosynthesis-light-intensity__beaker-water {
  fill: var(--interactive-water);
}

.photosynthesis-light-intensity__beaker-water-line {
  stroke: var(--interactive-water-edge);
  stroke-width: 1.5;
}

.photosynthesis-light-intensity__beaker-outline {
  stroke: var(--wiki-text);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.68;
}

.photosynthesis-light-intensity__beaker-markings {
  stroke: var(--wiki-text);
  stroke-width: 0.8;
  opacity: 0.28;
}

.photosynthesis-light-intensity__stem,
.photosynthesis-light-intensity__leaves {
  stroke: var(--interactive-pondweed);
  stroke-linecap: round;
}

.photosynthesis-light-intensity__stem {
  stroke-width: 1.6;
}

.photosynthesis-light-intensity__leaves {
  stroke-width: 1.4;
}

.photosynthesis-light-intensity__bubble {
  position: absolute;
  bottom: 31%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.45) 60%, rgba(255, 255, 255, 0) 74%);
  border: 1px solid rgba(255, 255, 255, 0.38);
  pointer-events: none;
  animation: photosynthesis-light-intensity-rise 3s ease-in forwards;
}

@keyframes photosynthesis-light-intensity-rise {
  0% {
    transform: translate(0, 0) scale(0.45);
    opacity: 0;
  }

  12% {
    opacity: 1;
  }

  100% {
    transform: translate(var(--bubble-drift, 0px), -150px) scale(1);
    opacity: 0;
  }
}

.photosynthesis-light-intensity__controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  margin-top: 1.1rem;
  align-items: end;
}

.photosynthesis-light-intensity__control label {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.35rem;
  color: var(--wiki-text);
  font-size: 0.86rem;
  font-weight: 600;
}

.photosynthesis-light-intensity__control label span {
  color: var(--wiki-text-muted);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.photosynthesis-light-intensity__control input[type="range"] {
  width: 100%;
  margin: 0;
  accent-color: var(--wiki-text);
}

.photosynthesis-light-intensity__control--compact {
  width: min(100%, 8.25rem);
}

.photosynthesis-light-intensity__control--compact input[type="number"] {
  width: 100%;
  padding: 0.55rem 0.7rem;
  background: var(--wiki-surface);
  color: var(--wiki-text);
  border: 1px solid var(--wiki-line);
  border-radius: var(--wiki-radius-sm);
  font: inherit;
  text-align: right;
}

.photosynthesis-light-intensity__control--compact input[type="number"]:focus {
  outline: 1px solid var(--wiki-text);
}

.photosynthesis-light-intensity__tip {
  margin-top: 0.85rem;
  color: var(--wiki-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.photosynthesis-light-intensity__tip code {
  font-size: 0.88em;
}

.photosynthesis-light-intensity__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.photosynthesis-light-intensity__button {
  border: 1px solid var(--wiki-line);
  background: var(--wiki-surface);
  color: var(--wiki-text);
  border-radius: var(--wiki-radius-sm);
  padding: 0.55rem 0.95rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 120ms ease, opacity 120ms ease;
}

.photosynthesis-light-intensity__button:hover,
.photosynthesis-light-intensity__button:focus-visible {
  background: var(--wiki-surface-soft);
}

.photosynthesis-light-intensity__button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.photosynthesis-light-intensity__button--primary {
  background: var(--wiki-text);
  border-color: var(--wiki-text);
  color: var(--wiki-bg);
}

.photosynthesis-light-intensity__button--primary:hover,
.photosynthesis-light-intensity__button--primary:focus-visible {
  background: var(--wiki-text);
  opacity: 0.9;
}

.photosynthesis-light-intensity__counter {
  color: var(--wiki-text-muted);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.photosynthesis-light-intensity__counter span {
  color: var(--wiki-text);
  font-variant-numeric: tabular-nums;
}

.photosynthesis-light-intensity__section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.photosynthesis-light-intensity__section-head--chart {
  align-items: flex-start;
}

.photosynthesis-light-intensity__section-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.photosynthesis-light-intensity__empty,
.photosynthesis-light-intensity__chart-note {
  color: var(--wiki-text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.photosynthesis-light-intensity__table-wrap {
  overflow-x: auto;
}

.photosynthesis-light-intensity table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.photosynthesis-light-intensity th,
.photosynthesis-light-intensity td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--wiki-line);
  font-size: 0.9rem;
}

.photosynthesis-light-intensity th {
  color: var(--wiki-text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.photosynthesis-light-intensity tbody tr:last-child td {
  border-bottom: none;
}

.photosynthesis-light-intensity__segmented {
  display: inline-flex;
  gap: 0.2rem;
  padding: 0.2rem;
  border: 1px solid var(--wiki-line);
  border-radius: 999px;
  background: var(--wiki-surface-soft);
}

.photosynthesis-light-intensity__segmented-button {
  border: none;
  background: transparent;
  color: var(--wiki-text-muted);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.photosynthesis-light-intensity__segmented-button:hover,
.photosynthesis-light-intensity__segmented-button:focus-visible {
  color: var(--wiki-text);
}

.photosynthesis-light-intensity__segmented-button.is-active {
  background: var(--wiki-surface);
  color: var(--wiki-text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.photosynthesis-light-intensity__chart-shell {
  background: var(--wiki-surface-soft);
  border: 1px solid var(--wiki-line);
  border-radius: var(--wiki-radius-md);
  overflow: hidden;
}

.photosynthesis-light-intensity__chart {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 720 / 320;
}

.photosynthesis-light-intensity__chart-note {
  margin-top: 0.85rem;
}

.photosynthesis-light-intensity__chart-panel {
  fill: var(--wiki-surface-soft);
}

.photosynthesis-light-intensity__chart-grid {
  stroke: var(--wiki-line);
  stroke-width: 1;
}

.photosynthesis-light-intensity__chart-axis {
  stroke: var(--wiki-text-muted);
  stroke-width: 1.2;
}

.photosynthesis-light-intensity__chart-line {
  fill: none;
  stroke: color-mix(in srgb, var(--interactive-accent) 72%, var(--wiki-text));
  stroke-width: 2;
}

.photosynthesis-light-intensity__chart-point {
  fill: var(--wiki-text);
  cursor: pointer;
}

.photosynthesis-light-intensity__chart-point:hover,
.photosynthesis-light-intensity__chart-point:focus-visible {
  fill: var(--interactive-accent);
}

.photosynthesis-light-intensity__axis-text,
.photosynthesis-light-intensity__axis-title,
.photosynthesis-light-intensity__chart-empty {
  fill: var(--wiki-text-muted);
  font-family: inherit;
}

.photosynthesis-light-intensity__axis-text {
  font-size: 12px;
}

.photosynthesis-light-intensity__axis-title {
  font-size: 13px;
  font-weight: 600;
}

.photosynthesis-light-intensity__chart-empty {
  font-size: 15px;
  text-anchor: middle;
}

@container (max-width: 760px) {
  .photosynthesis-light-intensity__card {
    padding: 1rem;
  }

  .photosynthesis-light-intensity__controls {
    grid-template-columns: 1fr;
  }

  .photosynthesis-light-intensity__control--compact {
    width: 100%;
  }
}

.photosynthesis-light-intensity .photosynthesis-light-intensity__section-title {
  margin: 0;
  font-size: 1rem;
}

.photosynthesis-light-intensity__chart-hit {
  fill: transparent;
  pointer-events: all;
}

.photosynthesis-light-intensity__chart-point:focus-visible {
  outline: none;
  stroke: var(--interactive-accent);
  stroke-width: 2;
}

.photosynthesis-light-intensity__time {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  font-weight: 400;
}

.photosynthesis-light-intensity__control input[type="range"] {
  min-height: 1.6rem;
}

.photosynthesis-light-intensity__segmented {
  flex-wrap: wrap;
}
