/* Build-a-PC Lab (templates/labkit/pcbuild.html): the parts shelf, the open case and the desk */
.pcb-howto { margin: 0; font-size: 13px; color: var(--muted); }
.pcb-shelf { display: flex; flex-direction: column; gap: 8px; }
.pcb-group { margin: 4px 0 0; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pcb-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.pcb-card { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: center; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); cursor: grab; text-align: left; font-size: 12.5px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.pcb-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px -8px rgba(15, 23, 42, .35); border-color: var(--teal); }
.pcb-card:active { cursor: grabbing; }
.pcb-card .i { grid-row: span 2; font-size: 24px; }
.pcb-card b { font-size: 12.5px; line-height: 1.2; }
.pcb-card small { color: var(--muted); }
.pcb-card.is-in { opacity: .45; }

.pcb-stage { min-height: 0; gap: 12px; }
.pcb-case { position: relative; display: grid; grid-template-columns: 1fr; gap: 10px; padding: 14px; border-radius: 16px;
  background: linear-gradient(160deg, #1f2937, #0b1220); border: 2px solid #334155; box-shadow: inset 0 0 0 6px rgba(148, 163, 184, .06); }
.pcb-board { display: grid; gap: 10px; padding: 14px; border-radius: 12px; background:
  linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 18px 18px,
  linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 18px 18px, #064e3b;
  grid-template-columns: 1.2fr 1fr 1fr; grid-template-areas: "cpu cool ram" "gpu gpu ram" "sto sto sto"; border: 1px solid #065f46; }
.pcb-case > .pcb-slot { grid-area: auto; }
.pcb-led { position: absolute; top: 10px; right: 14px; width: 10px; height: 10px; border-radius: 50%; background: #1f2937; }
.pcb-stage.is-on .pcb-led { background: #22c55e; box-shadow: 0 0 10px #22c55e; }

.pcb-slot { position: relative; min-height: 64px; padding: 22px 8px 8px; border-radius: 10px; border: 2px dashed rgba(148, 163, 184, .45);
  display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; transition: border-color .15s, background .15s, box-shadow .15s; }
.pcb-slot::before { content: attr(data-label); position: absolute; top: 4px; left: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8; }
.pcb-slot.is-target { border-color: #22d3ee; background: rgba(34, 211, 238, .08); box-shadow: 0 0 0 4px rgba(34, 211, 238, .15); animation: pcb-glow 1s ease-in-out infinite; }
.pcb-slot.is-over { background: rgba(34, 211, 238, .2); }
.pcb-slot.is-filled { border-style: solid; border-color: rgba(148, 163, 184, .3); }
@keyframes pcb-glow { 50% { box-shadow: 0 0 0 7px rgba(34, 211, 238, .25); } }
.pcb-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 9px; background: #0f172a; border: 1px solid #334155; color: #e2e8f0;
  font-size: 12px; font-weight: 600; cursor: pointer; animation: pcb-pop .35s cubic-bezier(.2, 1.4, .4, 1); }
.pcb-chip:hover { border-color: #f87171; }
.pcb-chip .i { font-size: 18px; }
.pcb-stage.is-on .pcb-chip.spins .i { display: inline-block; animation: pcb-spin .6s linear infinite; }
@keyframes pcb-pop { from { transform: scale(.4); opacity: 0; } }
@keyframes pcb-spin { to { transform: rotate(360deg); } }
.pcb-shake { animation: pcb-shake .45s; }
@keyframes pcb-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.pcb-desk { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; align-items: end; }
.pcb-monitor { display: flex; flex-direction: column; gap: 6px; }
.pcb-screen { aspect-ratio: 16 / 9; border-radius: 10px; border: 6px solid #111827; background: #020617; color: #e2e8f0; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 10px; font: 12px/1.4 "JetBrains Mono", ui-monospace, monospace; }
.pcb-off { color: #334155; }
.pcb-peripherals { display: flex; flex-direction: column; gap: 6px; }
.pcb-slot.is-desk { min-height: 52px; }
.pcb-bars { width: 100%; display: grid; gap: 5px; }
.pcb-bar { display: grid; grid-template-columns: 76px 1fr 64px; gap: 6px; align-items: center; font-size: 11px; }
.pcb-bar i { height: 9px; border-radius: 999px; background: rgba(148, 163, 184, .2); overflow: hidden; }
.pcb-bar i b { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #22d3ee, #a78bfa); transition: width 1s cubic-bezier(.2, .8, .2, 1); }
.pcb-progress { width: 70%; height: 6px; border-radius: 999px; background: #1e293b; overflow: hidden; margin-top: 8px; }
.pcb-progress b { display: block; height: 100%; width: 0; background: #22d3ee; }
.pcb-welcome { font-size: 15px; font-weight: 700; color: #86efac; margin-bottom: 6px; text-align: center; }
@media (max-width: 640px) { .pcb-board { grid-template-columns: 1fr 1fr; grid-template-areas: "cpu cool" "ram ram" "gpu gpu" "sto sto"; } .pcb-desk { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .pcb-chip, .pcb-slot.is-target, .pcb-stage.is-on .pcb-chip.spins .i { animation: none; } }
