.electric-page {
  background: #08111f;
}

.electric-topbar {
  background: rgba(8, 17, 31, .88);
  border-bottom-color: rgba(148, 163, 184, .18);
  color: #f8fafc;
}

.electric-topbar .lab-nav a {
  color: #cbd5e1;
}

.electric-topbar .lab-nav a:hover,
.electric-topbar .lab-nav a:focus {
  background: rgba(96, 165, 250, .16);
  color: #bfdbfe;
}

.circuit-brand-icon {
  font-size: .88rem;
}

.electric-shell {
  min-height: 100vh;
}

.electric-hero {
  background:
    radial-gradient(circle at 12% 18%, rgba(250, 204, 21, .18), transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(34, 197, 94, .16), transparent 28%),
    linear-gradient(135deg, #08111f, #0f172a 58%, #132033);
  color: #f8fafc;
  padding: clamp(2rem, 5vw, 3.4rem) 0 1.6rem;
}

.electric-hero-grid {
  align-items: center;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
}

.electric-back-link {
  color: #93c5fd;
  display: inline-flex;
  font-weight: 900;
  margin-bottom: .75rem;
  text-decoration: none;
}

.electric-hero h1 {
  color: #f8fafc;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.18;
  margin: 0;
}

.electric-hero p {
  color: #cbd5e1;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 800;
  line-height: 1.9;
  margin: 1rem 0 0;
  max-width: 760px;
}

.electric-status-card {
  align-items: center;
  background: rgba(15, 23, 42, .82);
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
  display: grid;
  gap: .25rem .8rem;
  grid-template-columns: 54px 1fr;
  padding: 1rem;
}

.status-dot {
  background: #64748b;
  border-radius: 999px;
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, .08);
  grid-row: span 2;
  height: 54px;
  width: 54px;
}

.status-dot.is-on {
  background: #facc15;
  box-shadow: 0 0 32px rgba(250, 204, 21, .85), inset 0 0 0 8px rgba(255, 255, 255, .22);
}

.status-dot.is-warning {
  background: #ef4444;
  box-shadow: 0 0 28px rgba(239, 68, 68, .7), inset 0 0 0 8px rgba(255, 255, 255, .16);
}

.electric-status-card strong {
  color: #f8fafc;
  font-size: 1.2rem;
  font-weight: 900;
}

.electric-status-card small {
  color: #a8bdd6;
  font-weight: 800;
}

.electric-main {
  background:
    radial-gradient(circle at 15% 12%, rgba(37, 99, 235, .14), transparent 30%),
    linear-gradient(180deg, #0b1220, #08111f);
  padding: 1rem 0 3rem;
}

.electric-message-bar {
  background: linear-gradient(135deg, rgba(37, 99, 235, .95), rgba(34, 197, 94, .88));
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .18);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.7;
  margin-bottom: .8rem;
  padding: .9rem 1rem;
}

.electric-message-bar.warning {
  background: linear-gradient(135deg, #dc2626, #f97316);
}

.electric-message-bar.success {
  background: linear-gradient(135deg, #16a34a, #0d9488);
}

.electric-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-bottom: .9rem;
}

.electric-tool-button {
  align-items: center;
  background: rgba(15, 23, 42, .86);
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 999px;
  color: #dbeafe;
  cursor: pointer;
  display: inline-flex;
  gap: .45rem;
  font-weight: 900;
  justify-content: center;
  min-height: 46px;
  padding: .65rem 1rem;
}

.electric-tool-button:hover,
.electric-tool-button:focus {
  background: rgba(37, 99, 235, .24);
}

.electric-tool-button.primary {
  background: linear-gradient(135deg, #2563eb, #16a34a);
  border-color: transparent;
  color: #fff;
}

.electric-tool-button.add-tool {
  background: linear-gradient(135deg, rgba(250, 204, 21, .95), rgba(251, 146, 60, .95));
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(251, 146, 60, .18);
  color: #111827;
  min-height: 54px;
  padding: .62rem 1.1rem;
}

.electric-tool-button.help-tool {
  background: rgba(37, 99, 235, .12);
  border-color: rgba(37, 99, 235, .22);
  color: #bfdbfe;
}

.electric-tool-button .tool-icon {
  align-items: center;
  background: rgba(255, 255, 255, .42);
  border-radius: 999px;
  display: inline-flex;
  font-size: 1.35rem;
  height: 34px;
  justify-content: center;
  line-height: 1;
  width: 34px;
}

.electric-tool-button.danger {
  color: #fecaca;
}

.electric-layout {
  display: block;
}

.electric-workbench {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(135deg, #122033, #0f172a);
  background-size: 34px 34px, 34px 34px, auto;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .32);
  min-height: 610px;
  overflow: hidden;
  position: relative;
  touch-action: none;
}

.electric-workbench::after {
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 24px;
  content: "";
  inset: 12px;
  pointer-events: none;
  position: absolute;
}

.wire-layer {
  height: 100%;
  inset: 0;
  overflow: visible;
  pointer-events: none;
  position: absolute;
  width: 100%;
  z-index: 2;
}

.wire-path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 8;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .35));
}

.wire-red {
  stroke: #ef4444;
}

.wire-black {
  stroke: #0f172a;
}

.wire-blue {
  stroke: #2563eb;
}

.wire-green {
  stroke: #16a34a;
}

.wire-orange {
  stroke: #f97316;
}

.wire-purple {
  stroke: #8b5cf6;
}

.circuit-part {
  cursor: grab;
  position: absolute;
  transform: translate(-50%, -50%);
  user-select: none;
  z-index: 5;
}

.wire-mid-handle {
  align-items: center;
  background: rgba(255, 255, 255, .92);
  border: 2px solid rgba(255, 255, 255, .86);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .28);
  cursor: grab;
  display: flex;
  height: 28px;
  justify-content: center;
  position: absolute;
  transform: translate(-50%, -50%);
  touch-action: none;
  width: 28px;
  z-index: 14;
}

.wire-mid-handle::after {
  background: rgba(15, 23, 42, .74);
  border-radius: 999px;
  content: "";
  height: 9px;
  width: 9px;
}

.wire-mid-handle.is-dragging {
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(1.12);
}

.circuit-part.is-dragging {
  cursor: grabbing;
  z-index: 9;
}

.part-grip {
  background: rgba(255, 255, 255, .94);
  border-radius: 999px;
  box-shadow: 0 12px 22px rgba(0, 0, 0, .18);
  color: #0f172a;
  display: inline-flex;
  font-size: .85rem;
  font-weight: 900;
  margin-bottom: .35rem;
  padding: .3rem .65rem;
}

.battery-part {
  width: 188px;
}

.battery-body {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .22), transparent 18%, transparent 78%, rgba(0, 0, 0, .2)),
    linear-gradient(135deg, #111827, #374151 46%, #d69b22 47%, #f4c44f 58%, #b7791f);
  border: 3px solid #020617;
  border-radius: 20px;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, .12), inset 0 -18px 28px rgba(0, 0, 0, .18), 0 18px 35px rgba(0, 0, 0, .35);
  height: 114px;
  position: relative;
}

.battery-body::before {
  background: linear-gradient(180deg, #f8fafc, #94a3b8);
  border-radius: 8px;
  content: "";
  height: 18px;
  left: 32px;
  position: absolute;
  top: -14px;
  width: 42px;
}

.battery-body::after {
  background: linear-gradient(180deg, #e2e8f0, #64748b);
  border-radius: 8px;
  content: "";
  height: 18px;
  position: absolute;
  right: 32px;
  top: -14px;
  width: 42px;
}

.battery-cap {
  align-items: center;
  border-radius: 999px;
  color: #fff;
  display: flex;
  font-size: 1.45rem;
  font-weight: 900;
  height: 48px;
  justify-content: center;
  position: absolute;
  top: 30px;
  width: 48px;
}

.battery-cap.plus {
  background: radial-gradient(circle at 35% 28%, #fecaca, #dc2626 55%, #7f1d1d);
  left: 24px;
}

.battery-cap.minus {
  background: radial-gradient(circle at 35% 28%, #bfdbfe, #1d4ed8 55%, #172554);
  right: 24px;
}

.battery-label {
  background: rgba(2, 6, 23, .34);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
  bottom: 12px;
  color: #fde68a;
  font-size: 1.15rem;
  font-weight: 900;
  left: 42px;
  padding: .12rem .65rem;
  position: absolute;
  right: 42px;
  text-align: center;
}

.lamp-part {
  align-items: center;
  display: flex;
  flex-direction: column;
  width: 170px;
}

.fan-part {
  align-items: center;
  display: flex;
  flex-direction: column;
  width: 150px;
}

.lamp-glow {
  background: radial-gradient(circle, rgba(250, 204, 21, .88), rgba(250, 204, 21, .18) 42%, transparent 72%);
  border-radius: 999px;
  height: 210px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 16px;
  transition: opacity .22s ease;
  width: 210px;
  z-index: -1;
}

.lamp-part.is-on .lamp-glow {
  opacity: 1;
}

.lamp-glass {
  background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, .92), rgba(254, 240, 138, .4) 54%, rgba(250, 204, 21, .22));
  border: 4px solid rgba(255, 255, 255, .8);
  border-radius: 50% 50% 44% 44%;
  box-shadow: inset 0 0 25px rgba(255, 255, 255, .5), 0 18px 35px rgba(0, 0, 0, .28);
  height: 120px;
  position: relative;
  width: 112px;
}

.lamp-glass::before {
  background: rgba(255, 255, 255, .72);
  border-radius: 999px;
  content: "";
  height: 38px;
  left: 24px;
  position: absolute;
  top: 18px;
  transform: rotate(-22deg);
  width: 17px;
}

.lamp-glass::after {
  background: radial-gradient(circle, rgba(255, 255, 255, .85), transparent 65%);
  border-radius: 999px;
  content: "";
  height: 24px;
  position: absolute;
  right: 22px;
  top: 30px;
  width: 24px;
}

.lamp-part.is-on .lamp-glass {
  background: radial-gradient(circle, #fff7b0, #facc15 58%, #f59e0b);
  box-shadow: 0 0 38px rgba(250, 204, 21, .9), inset 0 0 25px rgba(255, 255, 255, .65);
}

.lamp-filament {
  border: 4px solid #92400e;
  border-top: 0;
  border-radius: 0 0 999px 999px;
  bottom: 26px;
  height: 28px;
  left: 34px;
  position: absolute;
  width: 38px;
}

.lamp-base {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .42), transparent 26%, transparent 72%, rgba(0, 0, 0, .2)),
    repeating-linear-gradient(180deg, #e5e7eb 0, #e5e7eb 8px, #64748b 9px, #64748b 15px);
  border: 2px solid rgba(15, 23, 42, .38);
  border-radius: 14px 14px 18px 18px;
  height: 46px;
  margin-top: -5px;
  width: 74px;
}

.fan-body {
  align-items: center;
  display: flex;
  flex-direction: column;
  position: relative;
}

.fan-ring {
  background: radial-gradient(circle, #e0f2fe 0 16%, #93c5fd 17% 24%, #dbeafe 25% 68%, #64748b 69% 72%, transparent 73%);
  border: 4px solid rgba(148, 163, 184, .72);
  border-radius: 999px;
  box-shadow: inset 0 0 22px rgba(255, 255, 255, .56), 0 16px 30px rgba(15, 23, 42, .24);
  height: 104px;
  position: relative;
  width: 104px;
}

.fan-blade {
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  border-radius: 999px 999px 999px 8px;
  height: 38px;
  left: 48px;
  position: absolute;
  top: 16px;
  transform-origin: 4px 36px;
  width: 18px;
}

.blade-b {
  transform: rotate(120deg);
}

.blade-c {
  transform: rotate(240deg);
}

.fan-hub {
  background: radial-gradient(circle, #fff, #2563eb);
  border: 3px solid #dbeafe;
  border-radius: 999px;
  height: 28px;
  left: 34px;
  position: absolute;
  top: 34px;
  width: 28px;
}

.fan-stand {
  background: linear-gradient(180deg, #94a3b8, #334155);
  border-radius: 0 0 16px 16px;
  height: 34px;
  margin-top: -4px;
  width: 22px;
}

.fan-part.is-on .fan-ring {
  animation: fanSpin .55s linear infinite;
  box-shadow: 0 0 34px rgba(56, 189, 248, .46), inset 0 0 22px rgba(255, 255, 255, .6);
}

@keyframes fanSpin {
  to {
    transform: rotate(360deg);
  }
}

.switch-part {
  width: 194px;
}

.switch-control {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, .9), transparent 9%),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, .9), transparent 9%),
    linear-gradient(135deg, #f8fafc, #cbd5e1 62%, #94a3b8);
  border: 0;
  border-radius: 20px;
  box-shadow: inset 0 -8px 16px rgba(15, 23, 42, .18), 0 16px 32px rgba(0, 0, 0, .3);
  cursor: pointer;
  height: 118px;
  position: relative;
  width: 194px;
}

.switch-control::before,
.switch-control::after {
  background: radial-gradient(circle, #475569, #0f172a);
  border: 2px solid rgba(255, 255, 255, .7);
  border-radius: 999px;
  content: "";
  height: 14px;
  position: absolute;
  top: 18px;
  width: 14px;
}

.switch-control::before {
  left: 20px;
}

.switch-control::after {
  right: 20px;
}

.switch-base {
  background: linear-gradient(180deg, #64748b, #334155);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, .22);
  border-radius: 999px;
  bottom: 32px;
  height: 18px;
  left: 28px;
  position: absolute;
  right: 28px;
}

.switch-arm {
  background: linear-gradient(90deg, #fef3c7, #f59e0b 45%, #92400e);
  box-shadow: 0 8px 14px rgba(15, 23, 42, .28), inset 0 2px 3px rgba(255, 255, 255, .38);
  border-radius: 999px;
  bottom: 53px;
  height: 14px;
  left: 44px;
  position: absolute;
  transform: rotate(-22deg);
  transform-origin: left center;
  transition: transform .18s ease, bottom .18s ease;
  width: 116px;
}

.switch-arm::before,
.switch-arm::after {
  background: #7c2d12;
  border-radius: 999px;
  content: "";
  height: 20px;
  position: absolute;
  top: -3px;
  width: 20px;
}

.switch-arm::before {
  left: -4px;
}

.switch-arm::after {
  right: -4px;
}

.switch-control.is-closed .switch-arm {
  bottom: 50px;
  transform: rotate(0);
}

.switch-status {
  color: #0f172a;
  font-weight: 900;
  left: 0;
  position: absolute;
  right: 0;
  top: 16px;
}

.terminal {
  align-items: center;
  background: #d6a433;
  border: 4px solid #fde68a;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(214, 164, 51, .14), 0 8px 16px rgba(0, 0, 0, .25);
  color: #111827;
  cursor: default;
  display: flex;
  font-size: 1rem;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  position: absolute;
  transition: background .16s ease, box-shadow .16s ease, transform .16s ease;
  width: 34px;
  z-index: 6;
}

.terminal.is-near {
  background: #fb923c;
  box-shadow: 0 0 0 8px rgba(251, 146, 60, .22), 0 0 24px rgba(251, 146, 60, .8);
  transform: scale(1.12);
}

.terminal.is-connected {
  background: #22c55e;
  border-color: #bbf7d0;
}

.terminal-positive {
  left: 30px;
  top: -32px;
}

.terminal-negative {
  right: 30px;
  top: -32px;
}

.lamp-terminal-left {
  bottom: -14px;
  left: 38px;
}

.lamp-terminal-right {
  bottom: -14px;
  right: 38px;
}

.fan-terminal-left {
  bottom: 6px;
  left: 24px;
}

.fan-terminal-right {
  bottom: 6px;
  right: 24px;
}

.switch-terminal-left {
  bottom: 15px;
  left: 22px;
}

.switch-terminal-right {
  bottom: 15px;
  right: 22px;
}

.wire-end {
  align-items: center;
  border: 4px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .1), 0 10px 18px rgba(0, 0, 0, .34);
  cursor: grab;
  display: flex;
  height: 36px;
  justify-content: center;
  position: absolute;
  transform: translate(-50%, -50%);
  transition: box-shadow .16s ease, transform .16s ease, background .16s ease;
  touch-action: none;
  width: 36px;
  z-index: 7;
}

.wire-end::after {
  background: #fff;
  border-radius: 999px;
  content: "";
  height: 10px;
  width: 10px;
}

.wire-end.is-dragging {
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(1.12);
  z-index: 12;
}

.wire-end.is-connected {
  background: #22c55e !important;
  border-color: #bbf7d0;
}

.wire-end.is-near {
  box-shadow: 0 0 0 8px rgba(251, 146, 60, .22), 0 0 24px rgba(251, 146, 60, .8);
}

.wire-red-end {
  background: #ef4444;
}

.wire-black-end {
  background: #111827;
}

.wire-blue-end {
  background: #2563eb;
}

.wire-green-end {
  background: #16a34a;
}

.wire-orange-end {
  background: #f97316;
}

.wire-purple-end {
  background: #8b5cf6;
}

@media (max-width: 1050px) {
  .electric-hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .electric-workbench {
    min-height: 760px;
  }

  .electric-toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .electric-tool-button {
    width: 100%;
  }

  .battery-part {
    width: 164px;
  }

  .battery-body {
    height: 102px;
  }

  .lamp-part {
    width: 148px;
  }

  .lamp-glass {
    height: 108px;
    width: 102px;
  }

  .switch-part,
  .switch-control {
    width: 170px;
  }
}

/* Student theme support and the right-side component dock. */
.electric-page.electric-theme-light {
  background: #f3f8ff;
  color: #0f172a;
}

.electric-theme-light .electric-topbar {
  background: rgba(255, 255, 255, .92);
  border-bottom-color: rgba(37, 99, 235, .12);
  color: #0f172a;
}

.electric-theme-light .electric-topbar .lab-nav a {
  color: #334155;
}

.electric-theme-light .electric-hero {
  background:
    radial-gradient(circle at 12% 18%, rgba(250, 204, 21, .28), transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(34, 197, 94, .22), transparent 28%),
    linear-gradient(135deg, #eff6ff, #ffffff 56%, #ecfdf5);
  color: #0f172a;
}

.electric-theme-light .electric-hero h1,
.electric-theme-light .electric-status-card strong {
  color: #0f172a;
}

.electric-theme-light .electric-hero p,
.electric-theme-light .electric-status-card small {
  color: #475569;
}

.electric-theme-light .electric-back-link {
  color: #2563eb;
}

.electric-theme-light .electric-status-card {
  background: rgba(255, 255, 255, .94);
  border-color: rgba(37, 99, 235, .12);
  box-shadow: 0 20px 50px rgba(15, 23, 42, .1);
}

.electric-theme-light .electric-main {
  background:
    radial-gradient(circle at 15% 12%, rgba(37, 99, 235, .1), transparent 30%),
    linear-gradient(180deg, #f8fbff, #eef6ff);
}

.electric-theme-light .electric-tool-button {
  background: #fff;
  border-color: rgba(37, 99, 235, .16);
  color: #1e40af;
}

.electric-theme-light .electric-tool-button.primary {
  background: linear-gradient(135deg, #2563eb, #16a34a);
  color: #fff;
}

.electric-theme-light .electric-tool-button.add-tool {
  background: linear-gradient(135deg, #facc15, #fb923c);
  color: #111827;
}

.electric-theme-light .electric-tool-button.help-tool {
  background: #fff;
  border-color: rgba(37, 99, 235, .18);
  color: #1e40af;
}

.electric-theme-light .electric-tool-button.danger {
  color: #b91c1c;
}

.electric-theme-light .electric-workbench {
  background:
    linear-gradient(90deg, rgba(37, 99, 235, .055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(37, 99, 235, .055) 1px, transparent 1px),
    linear-gradient(135deg, #f8fafc, #eaf4ff);
  border-color: rgba(37, 99, 235, .14);
  box-shadow: 0 28px 70px rgba(37, 99, 235, .12);
}

.electric-theme-light .electric-workbench::after {
  border-color: rgba(37, 99, 235, .11);
}

.electric-theme-light .wire-black {
  stroke: #1f2937;
}

/* Slightly smaller components while keeping terminal touch targets large. */
.battery-part {
  width: 158px;
}

.battery-body {
  height: 96px;
}

.battery-cap {
  font-size: 1.2rem;
  height: 40px;
  top: 27px;
  width: 40px;
}

.battery-cap.plus {
  left: 21px;
}

.battery-cap.minus {
  right: 21px;
}

.lamp-part {
  width: 142px;
}

.fan-part {
  width: 132px;
}

.lamp-glow {
  height: 176px;
  width: 176px;
}

.lamp-glass {
  height: 98px;
  width: 92px;
}

.lamp-base {
  height: 38px;
  width: 64px;
}

.switch-part,
.switch-control {
  width: 158px;
}

.switch-control {
  height: 100px;
}

.switch-arm {
  left: 36px;
  width: 96px;
}

@media (max-width: 720px) {
  .electric-hero {
    padding: 1.15rem 0 .85rem;
  }

  .electric-hero h1 {
    font-size: clamp(1.75rem, 9vw, 2.45rem);
  }

  .electric-hero p {
    font-size: .96rem;
    line-height: 1.75;
  }

  .battery-part {
    width: 120px;
  }

  .battery-body {
    height: 78px;
  }

  .battery-body::before,
  .battery-body::after {
    height: 13px;
    top: -10px;
    width: 30px;
  }

  .battery-cap {
    font-size: .98rem;
    height: 31px;
    top: 23px;
    width: 31px;
  }

  .battery-cap.plus {
    left: 16px;
  }

  .battery-cap.minus {
    right: 16px;
  }

  .battery-label {
    bottom: 8px;
    font-size: .92rem;
    left: 32px;
    right: 32px;
  }

  .lamp-part {
    width: 104px;
  }

  .fan-part {
    width: 98px;
  }

  .fan-ring {
    height: 78px;
    width: 78px;
  }

  .fan-blade {
    height: 28px;
    left: 36px;
    top: 12px;
    transform-origin: 3px 27px;
    width: 14px;
  }

  .fan-hub {
    height: 22px;
    left: 24px;
    top: 24px;
    width: 22px;
  }

  .fan-stand {
    height: 26px;
    width: 18px;
  }

  .lamp-glow {
    height: 136px;
    width: 136px;
  }

  .lamp-glass {
    height: 78px;
    width: 74px;
  }

  .lamp-filament {
    bottom: 18px;
    height: 20px;
    left: 25px;
    width: 28px;
  }

  .lamp-base {
    height: 30px;
    width: 52px;
  }

  .switch-part,
  .switch-control {
    width: 118px;
  }

  .switch-control {
    height: 80px;
  }

  .switch-base {
    bottom: 24px;
    height: 14px;
    left: 22px;
    right: 22px;
  }

  .switch-arm {
    bottom: 41px;
    height: 11px;
    left: 29px;
    width: 72px;
  }

  .switch-control.is-closed .switch-arm {
    bottom: 38px;
  }

  .switch-status {
    font-size: .78rem;
    top: 10px;
  }

  .part-grip {
    font-size: .72rem;
    padding: .22rem .48rem;
  }

  .terminal {
    border-width: 3px;
    font-size: .82rem;
    height: 28px;
    width: 28px;
  }

  .terminal-positive,
  .terminal-negative {
    top: -25px;
  }

  .lamp-terminal-left {
    left: 24px;
  }

  .lamp-terminal-right {
    right: 24px;
  }

  .fan-terminal-left {
    bottom: 4px;
    left: 18px;
  }

  .fan-terminal-right {
    bottom: 4px;
    right: 18px;
  }

  .switch-terminal-left {
    bottom: 10px;
    left: 15px;
  }

  .switch-terminal-right {
    bottom: 10px;
    right: 15px;
  }

  .wire-end {
    height: 31px;
    width: 31px;
  }

  .wire-mid-handle {
    height: 27px;
    width: 27px;
  }
}

@media (max-width: 560px) {
  .electric-message-bar {
    font-size: .9rem;
    margin-bottom: .65rem;
    padding: .7rem .8rem;
  }

  .electric-toolbar {
    display: grid;
    gap: .5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .electric-tool-button {
    border-radius: 18px;
    font-size: .86rem;
    min-height: 48px;
    padding: .45rem .55rem;
  }

  .electric-tool-button.add-tool {
    min-height: 52px;
  }

  .electric-tool-button .tool-icon {
    font-size: 1.08rem;
    height: 28px;
    width: 28px;
  }

  .electric-workbench {
    border-radius: 20px;
    min-height: 610px;
  }
}
