/* Lesson 06: LED circuit, power bank charges and energy scale, charger cable. */
.led-grid, .bank-grid, .charge-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 30px; align-items: start; }
.led-grid input[type=range], .bank-grid input[type=range], .charge-grid input[type=range] { margin-bottom: 14px; }
.design { font-size: .84rem; color: var(--muted); margin: 0 0 14px; }
.design b { color: var(--text); }
#led-svg { width: 100%; height: auto; background: #10202c; border-radius: 14px; }
#led-svg .wire { stroke: #6b8796; stroke-width: 4; fill: none; stroke-linejoin: round; }
#led-svg .cell path { stroke: var(--u); stroke-width: 4; }
#led-svg .res { fill: #c9b48a; stroke: #8a744a; stroke-width: 2; }
#led-svg .led { fill: #2b3a44; stroke: #a9bdc6; stroke-width: 2; }
#led-svg .led-bar { stroke: #a9bdc6; stroke-width: 3; }
#led-svg .burnt { stroke: var(--hot); stroke-width: 4; }
.charges { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; min-height: 96px; padding: 16px; background: #10202c; border-radius: 14px; }
.charges .phone { width: 34px; height: 64px; border: 2px solid #a9bdc6; border-radius: 7px; display: flex; align-items: flex-end; padding: 3px; }
.charges .phone span { display: block; width: 100%; background: var(--ok); border-radius: 3px; }
.charges strong { font-size: 2rem; color: var(--ok); margin-left: 8px; }
.energy-scale { position: relative; height: 150px; margin: 28px 8% 0; }
.energy-scale .track { position: absolute; left: 0; right: 0; top: 70px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, #2b404d, var(--i), var(--u), var(--p)); }
.energy-scale .mark { position: absolute; top: 0; transform: translateX(-50%); width: 120px; text-align: center; font-size: .68rem; line-height: 1.3; color: var(--muted); }
.energy-scale .mark::after { content: ""; position: absolute; left: 50%; top: 100%; height: 12px; border-left: 1px solid var(--line); }
.energy-scale .mark.below { top: 88px; }
.energy-scale .mark.below::after { top: auto; bottom: 100%; }
.energy-scale .mark b { display: block; color: var(--text); }
.energy-scale .mark.limit b { color: var(--hot); }
.energy-scale .here { position: absolute; top: 62px; transform: translateX(-50%); padding: 2px 8px; border-radius: 999px; background: var(--ok); color: #10201a; font-size: .7rem; font-weight: 700; white-space: nowrap; }

@media (max-width: 800px) {
  .led-grid, .bank-grid, .charge-grid { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 600px) {
  .energy-scale { height: auto; margin: 20px 0 0; display: flex; flex-direction: column; gap: 6px; }
  .energy-scale .track { display: none; }
  .energy-scale .mark, .energy-scale .mark.below, .energy-scale .here { position: static; transform: none; width: auto; text-align: left; font-size: .78rem; display: flex; gap: 10px; }
  .energy-scale .mark::after { display: none; }
  .energy-scale .mark b { min-width: 76px; }
  .energy-scale .here { align-self: flex-start; order: -1; }
}
