/* =====================================================================
   PBLRC Educational Arcade — PC Builder Pro styles
   Workbench aesthetic inside the arcade: dark anti-static-mat surfaces,
   PCB greens, cable colors. Uses the shared tokens from styles.css.
   ===================================================================== */
.cabinet.c-pc { --c: var(--neon); }
.pc-hero .lobby-head svg { width: 72px; height: 72px; }
.pc-eyebrow { font-size: .7rem; font-weight: 700; letter-spacing: .14em; color: var(--neon); }

/* Severity pills */
.pc-sev { display: inline-block; font-size: .62rem; font-weight: 700; letter-spacing: .08em; padding: .1rem .4rem; border-radius: 5px; border: 1px solid; vertical-align: middle; }
.pc-sev.error { color: #FFD7D5; background: rgba(229, 57, 53, .18); border-color: var(--red); }
.pc-sev.warn { color: #FFE8A3; background: rgba(255, 193, 7, .12); border-color: var(--gold); }
.pc-sev.info { color: #D6F5FF; background: rgba(41, 211, 255, .1); border-color: var(--neon); }
.pc-sev.ok { color: #DFFBE2; background: rgba(95, 208, 104, .14); border-color: var(--green-lit); }

/* Generic layout */
.pc-grid { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 980px) { .pc-grid { grid-template-columns: 1fr; } }
.pc-task { position: sticky; top: calc(70px + env(safe-area-inset-top, 0px)); max-height: calc(100vh - 90px); overflow: auto; }
@media (max-width: 980px) { .pc-task { position: static; max-height: none; } }
.pc-widget { min-width: 0; display: grid; gap: .8rem; }
.pc-card { background: #0E1224; border: 2px solid #2B3356; border-radius: 14px; padding: .8rem; min-width: 0; }
.pc-card h3 { margin: 0 0 .5rem; font-size: .78rem; letter-spacing: .1em; color: var(--muted); }
.pc-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.pc-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .8rem; }
.pc-note { font-size: .78rem; color: var(--muted); }
.pc-kbd { font-family: var(--mono); font-size: .8rem; }

/* Exploded scene */
.pc-scene, .pc-bench, .pc-chart { display: block; width: 100%; height: auto; font-family: var(--body); }
.pc-scene { background: #090C18; border: 2px solid #2B3356; border-radius: 12px; }
.pc-scene .hot { cursor: pointer; outline: none; }
.pc-scene .hot:hover .ring, .pc-scene .hot:focus .ring { stroke: var(--gold); }
.pc-scene .hot.found .ring { stroke: var(--green-lit); }
.pc-scene .hot.wrong .ring { stroke: var(--red); }
.pc-scene .hot.target .ring { stroke: var(--neon); stroke-dasharray: 6 4; }
.pc-tip { min-height: 3.6em; padding: .55rem .7rem; border-radius: 10px; background: #0D1022; border: 1px solid var(--line); font-size: .88rem; }
.pc-tip b { color: var(--gold); }
.pc-labels { display: flex; flex-wrap: wrap; gap: .35rem; }
.pc-label { min-height: 38px; padding: .2rem .65rem; border-radius: 999px; border: 2px solid var(--line); background: #161B2E; cursor: grab; font-size: .82rem; font-weight: 600; touch-action: none; user-select: none; }
.pc-label[aria-pressed="true"] { border-color: var(--gold); box-shadow: var(--glow-gold); }
.pc-label.used { opacity: .45; text-decoration: line-through; cursor: default; }

/* Connector cards */
.conn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .6rem; }
.conn-card { display: grid; gap: .35rem; padding: .5rem; border-radius: 10px; background: #0D1022; border: 2px solid var(--line); }
.conn-card.ok { border-color: var(--green-lit); } .conn-card.no { border-color: var(--red); }
.conn-face { width: 100%; height: 70px; background: #070912; border-radius: 6px; }
.conn-card select, .pc-select { width: 100%; min-height: 40px; background: #070912; color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: .2rem .4rem; }

/* Assembly bench */
.bench-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: .8rem; align-items: start; }
@media (max-width: 860px) { .bench-wrap { grid-template-columns: 1fr; } }
.pc-bench { background: #070912; border: 2px solid #2B3356; border-radius: 12px; touch-action: none; }
.pc-bench .zone { fill: transparent; stroke: transparent; stroke-width: 2; pointer-events: none; }
.pc-bench .zone.active { pointer-events: all; fill: rgba(41, 211, 255, .06); stroke: rgba(41, 211, 255, .35); stroke-dasharray: 5 4; cursor: pointer; }
.pc-bench .zone.active.hint { fill: rgba(255, 193, 7, .14); stroke: var(--gold); animation: pcpulse 1.2s ease-in-out infinite; }
.pc-bench .zone.active:focus, .pc-bench .zone.active:hover, .pc-bench .zone.over { fill: rgba(95, 208, 104, .22); stroke: var(--green-lit); outline: none; }
@keyframes pcpulse { 50% { fill: rgba(255, 193, 7, .3); } }
.reduce-motion .pc-bench .zone.active.hint { animation: none; }
.tray { display: grid; gap: .5rem; align-content: start; }
.tray h4 { margin: .2rem 0 0; font-size: .7rem; letter-spacing: .12em; color: var(--muted); }
.tray-list { display: grid; gap: .35rem; }
.tray-item { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: .45rem; align-items: center; text-align: left; min-height: 44px; padding: .35rem .5rem; border-radius: 9px; border: 2px solid var(--line); background: #161B2E; cursor: grab; font-size: .84rem; touch-action: none; user-select: none; }
.tray-item .em { font-size: 1.1rem; text-align: center; }
.tray-item small { display: block; color: var(--muted); font-size: .7rem; }
.tray-item[aria-pressed="true"] { border-color: var(--gold); box-shadow: var(--glow-gold); }
.tray-item.done { opacity: .5; border-style: dashed; cursor: default; }
.tray-item:disabled { cursor: default; }
.drag-ghost { position: fixed; z-index: 9999; pointer-events: none; padding: .35rem .6rem; border-radius: 8px; background: var(--panel-2); border: 2px solid var(--gold); color: var(--text); font-size: .82rem; font-weight: 700; transform: translate(-50%, -120%); box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
.cpu-rot { display: flex; align-items: center; gap: .5rem; padding: .4rem; border-radius: 9px; background: #0D1022; border: 1px solid var(--line); }
.cpu-rot svg { width: 56px; height: 56px; }
.bench-log { max-height: 160px; overflow: auto; font-size: .8rem; display: grid; gap: .2rem; padding: .4rem .5rem; border-radius: 8px; background: #070912; border: 1px solid var(--line); }
.bench-log .ok { color: #C8F7CF; } .bench-log .no { color: #FFD7D5; } .bench-log .warn { color: #FFE8A3; }
.safety-list { display: grid; gap: .35rem; }
.safety-list label { display: grid; grid-template-columns: 24px 1fr; gap: .4rem; align-items: start; font-size: .84rem; padding: .3rem .4rem; border-radius: 8px; background: #0D1022; border: 1px solid var(--line); cursor: pointer; }
.safety-list input { width: 20px; height: 20px; accent-color: var(--green-lit); }

/* POST panel */
.post-panel { display: grid; gap: .5rem; }
.post-leds { display: flex; flex-wrap: wrap; gap: .4rem; }
.post-led { display: inline-flex; align-items: center; gap: .3rem; font-family: var(--mono); font-size: .78rem; padding: .25rem .5rem; border-radius: 6px; border: 1px solid var(--line); background: #0D1022; color: var(--muted); }
.post-led i { width: 12px; height: 12px; border-radius: 50%; background: #222; display: inline-block; }
.post-led.on { color: #FFE8A3; border-color: var(--gold); } .post-led.on i { background: #FF9F1C; box-shadow: 0 0 10px #FF9F1C; }
.post-screen { font-family: var(--mono); font-size: .84rem; line-height: 1.45; background: #000; color: #CFE8D2; border: 2px solid #2B3356; border-radius: 8px; padding: .6rem .7rem; min-height: 5.5em; white-space: pre-wrap; }
.post-screen .warnline { color: #FFE8A3; }
.post-stages { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; font-size: .82rem; }
.post-stages li::before { content: '● '; }
.post-stages li.ok::before { color: var(--green-lit); } .post-stages li.no::before { color: var(--red-lit); }
.power-btn { width: 74px; height: 74px; border-radius: 50%; border: 3px solid var(--green-lit); background: radial-gradient(circle at 40% 35%, #2E7D32, #0F3A12 70%); color: #E6FFE6; font-family: var(--pixel); font-size: .5rem; cursor: pointer; box-shadow: 0 0 18px rgba(95, 208, 104, .35); }
.power-btn:active { transform: translateY(2px); }

/* Builder */
.builder { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: .8rem; align-items: start; }
@media (max-width: 900px) { .builder { grid-template-columns: 1fr; } }
.cat-tabs { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .5rem; }
.cat-tabs button { min-height: 36px; padding: 0 .6rem; border-radius: 7px; background: #0D1022; border: 1px solid var(--line); font-size: .75rem; font-weight: 700; cursor: pointer; }
.cat-tabs button[aria-pressed="true"] { background: var(--purple); border-color: var(--purple); color: #fff; }
.cat-tabs button.err { box-shadow: inset 0 -3px 0 var(--red); }
.cat-tabs button.set::after { content: ' ✔'; color: var(--green-lit); }
.parts-list { display: grid; gap: .35rem; max-height: 470px; overflow: auto; padding-right: .2rem; }
.part-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem .6rem; text-align: left; padding: .5rem .6rem; border-radius: 9px; border: 2px solid var(--line); background: #0D1022; cursor: pointer; }
.part-card[aria-pressed="true"] { border-color: var(--gold); box-shadow: var(--glow-gold); }
.part-card b { font-size: .86rem; }
.part-card .pr { font-family: var(--mono); color: var(--gold); font-size: .85rem; }
.part-card .sp { grid-column: 1 / -1; font-size: .72rem; color: var(--muted); }
.part-card.locked { opacity: .55; cursor: not-allowed; }
.build-sum { display: grid; gap: .25rem; font-size: .8rem; }
.build-sum .bs { display: grid; grid-template-columns: 108px minmax(0, 1fr) auto; gap: .4rem; align-items: baseline; padding: .15rem 0; border-bottom: 1px dashed #232A4A; }
.build-sum .bs span:first-child { color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.build-sum .bs em { font-style: normal; font-family: var(--mono); color: var(--gold); }
.issues { display: grid; gap: .35rem; max-height: 300px; overflow: auto; }
.issue { padding: .4rem .5rem; border-radius: 8px; background: #0D1022; border-left: 4px solid var(--line); font-size: .8rem; }
.issue.error { border-left-color: var(--red); } .issue.warn { border-left-color: var(--gold); } .issue.info { border-left-color: var(--neon); }
.issue b { display: block; font-size: .82rem; margin: .15rem 0; }
.issue .ob { font-size: .66rem; color: var(--muted); }
.pc-meter { display: grid; gap: .2rem; font-size: .78rem; }
.pc-meter-h { display: flex; justify-content: space-between; gap: .5rem; }
.pc-meter-h b { font-family: var(--mono); color: var(--text); }
.pc-meter-bar { position: relative; height: 10px; border-radius: 999px; background: #070912; border: 1px solid var(--line); overflow: visible; }
.pc-meter-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--green), var(--green-lit)); }
.pc-meter.warn .pc-meter-bar i { background: linear-gradient(90deg, #B8860B, var(--gold)); }
.pc-meter.bad .pc-meter-bar i { background: linear-gradient(90deg, #8E1C1A, var(--red)); }
.pc-meter-bar em { position: absolute; top: -4px; width: 2px; height: 16px; background: #fff; }
.brief { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: .6rem; align-items: start; padding: .6rem; border-radius: 10px; background: rgba(41, 211, 255, .06); border: 1px solid rgba(41, 211, 255, .3); }
.brief .ico { font-size: 1.9rem; text-align: center; }
.brief b { color: var(--neon); }
.reqs { margin: .3rem 0 0; padding-left: 1.1rem; font-size: .8rem; }
.compare-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .5rem; }
.cmp-slot { padding: .5rem; border-radius: 9px; background: #0D1022; border: 1px solid var(--line); font-size: .78rem; }
.cmp-slot b { color: var(--gold); }

/* UEFI */
.uefi { background: #06142B; border: 2px solid #1E3A66; border-radius: 12px; overflow: hidden; font-family: var(--mono); }
.uefi-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .4rem; padding: .5rem .7rem; background: #0A2350; color: #BFD8FF; font-size: .78rem; }
.uefi-tabs { display: flex; flex-wrap: wrap; gap: 2px; background: #0A1C3D; padding: 2px; }
.uefi-tabs button { min-height: 38px; padding: 0 .8rem; border: 0; background: #0D2450; color: #9DB8E8; font-family: var(--mono); font-size: .8rem; cursor: pointer; }
.uefi-tabs button[aria-pressed="true"] { background: #1D4FA3; color: #fff; }
.uefi-body { padding: .7rem; display: grid; gap: .4rem; min-height: 260px; color: #DCE8FF; font-size: .84rem; }
.uefi-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(140px, auto); gap: .6rem; align-items: center; padding: .3rem .4rem; border-radius: 6px; }
.uefi-row:hover { background: rgba(255, 255, 255, .04); }
.uefi-row select, .uefi-row input { min-height: 36px; background: #031026; color: #fff; border: 1px solid #2F5FB3; border-radius: 4px; font-family: var(--mono); padding: 0 .4rem; }
.uefi-row .ro { color: #FFE8A3; }
.uefi-help { font-size: .74rem; color: #8FB0E6; border-top: 1px solid #1E3A66; padding: .4rem .7rem; background: #041029; }
.boot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.boot-list li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: .4rem; align-items: center; padding: .35rem .5rem; border-radius: 6px; background: #0A2350; }
.boot-list li span:first-child { color: #FFE8A3; }
.boot-list button { min-width: 36px; min-height: 34px; border-radius: 4px; background: #133A7A; border: 1px solid #2F5FB3; color: #fff; cursor: pointer; }
.flash-bar { height: 16px; border-radius: 4px; background: #031026; border: 1px solid #2F5FB3; overflow: hidden; }
.flash-bar i { display: block; height: 100%; background: linear-gradient(90deg, #1D4FA3, #29D3FF); width: 0; transition: width .2s linear; }

/* Tuning garage */
.tune-grid { display: grid; grid-template-columns: minmax(250px, 320px) minmax(0, 1fr); gap: .8rem; align-items: start; }
@media (max-width: 860px) { .tune-grid { grid-template-columns: 1fr; } }
.tune-ctl { display: grid; gap: .55rem; }
.tune-ctl label { display: grid; gap: .2rem; font-size: .8rem; font-weight: 600; }
.tune-ctl label span { display: flex; justify-content: space-between; }
.tune-ctl label b { font-family: var(--mono); color: var(--gold); }
.tune-ctl input[type="range"] { width: 100%; accent-color: var(--gold); min-height: 30px; }
.tune-ctl select { min-height: 38px; background: #070912; color: var(--text); border: 1px solid var(--line); border-radius: 6px; }
.risk { font-weight: 700; padding: .15rem .5rem; border-radius: 6px; }
.risk.low { background: rgba(95, 208, 104, .15); color: var(--green-lit); }
.risk.elevated { background: rgba(255, 193, 7, .15); color: var(--gold); }
.risk.high { background: rgba(229, 57, 53, .2); color: var(--red-lit); }

/* Tickets */
.ticket-head { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: .6rem; align-items: start; }
.ticket-head .ico { font-size: 2rem; text-align: center; }
.quote { font-style: italic; color: #DCE8FF; }
.tests-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .35rem; }
.test-btn { text-align: left; min-height: 44px; padding: .35rem .5rem; border-radius: 8px; border: 1px solid var(--line); background: #161B2E; cursor: pointer; font-size: .8rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .3rem; align-items: center; }
.test-btn em { font-style: normal; font-family: var(--mono); color: var(--gold); font-size: .72rem; }
.test-btn.ran { border-color: var(--neon); background: #0E2236; }
.evidence { display: grid; gap: .3rem; max-height: 260px; overflow: auto; }
.ev { padding: .35rem .5rem; border-radius: 7px; background: #070912; border: 1px solid var(--line); font-size: .8rem; }
.ev b { color: var(--neon); display: block; font-size: .74rem; }
.clock { font-family: var(--mono); color: var(--gold); }
.diag-form { display: grid; gap: .55rem; }
.diag-form label { display: grid; gap: .2rem; font-size: .8rem; font-weight: 700; color: var(--muted); }
.check-list { display: grid; gap: .25rem; }
.check-list label { display: grid; grid-template-columns: 22px 1fr; gap: .35rem; align-items: start; font-weight: 400; color: var(--text); font-size: .8rem; cursor: pointer; }
.check-list input { width: 18px; height: 18px; }
.radio-cards { display: grid; gap: .3rem; }
.radio-cards label { display: grid; grid-template-columns: 22px 1fr; gap: .35rem; padding: .35rem .45rem; border-radius: 8px; background: #0D1022; border: 1px solid var(--line); font-weight: 400; color: var(--text); font-size: .8rem; cursor: pointer; }

/* Console */
.console { background: #04070B; border: 2px solid #23305A; border-radius: 10px; font-family: var(--mono); font-size: .84rem; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: clamp(300px, 52vh, 460px); }
.console-top { display: flex; gap: .3rem; padding: .3rem; background: #0A0E1A; border-bottom: 1px solid var(--line); }
.console-top button { min-height: 34px; padding: 0 .7rem; border-radius: 6px; border: 1px solid var(--line); background: #0D1022; font-family: var(--mono); font-size: .78rem; cursor: pointer; }
.console-top button[aria-pressed="true"] { background: #123A1A; border-color: var(--green-lit); color: #CFF7D3; }
.console-out { overflow: auto; padding: .5rem .6rem; white-space: pre-wrap; color: #C8F7CF; line-height: 1.4; }
.console-out .cmd { color: #FFE8A3; } .console-out .err { color: #FF9E9A; }
.console-in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .4rem; align-items: center; padding: .35rem .5rem; border-top: 1px solid var(--line); }
.console-in span { color: var(--green-lit); white-space: nowrap; }
.console-in input { min-height: 38px; background: transparent; border: 0; color: #fff; font-family: var(--mono); font-size: .9rem; outline: none; width: 100%; }
.console-in input:focus-visible { box-shadow: inset 0 -2px 0 var(--gold); }
.goal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; font-size: .82rem; }
.goal-list li { display: grid; grid-template-columns: 22px 1fr; gap: .3rem; }
.goal-list li.done span:first-child { color: var(--green-lit); }

/* Partition planner / permissions */
.disk-bar { display: flex; height: 44px; border-radius: 8px; overflow: hidden; border: 2px solid var(--line); background: #070912; }
.disk-bar div { display: grid; place-items: center; font-size: .7rem; font-weight: 700; color: #fff; min-width: 2px; overflow: hidden; white-space: nowrap; }
.part-rows { display: grid; gap: .35rem; }
.part-row { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(100px, 1fr) 110px 40px; gap: .4rem; align-items: center; }
@media (max-width: 560px) { .part-row { grid-template-columns: 1fr 1fr; } }
.part-row select, .part-row input { min-height: 38px; background: #070912; color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 0 .4rem; width: 100%; }
.perm-grid { display: grid; grid-template-columns: 90px repeat(3, 60px); gap: .3rem; align-items: center; font-family: var(--mono); font-size: .82rem; }
.perm-grid label { display: grid; place-items: center; min-height: 40px; border-radius: 6px; background: #0D1022; border: 1px solid var(--line); cursor: pointer; }
.perm-grid input { width: 18px; height: 18px; }
.big-num { font-family: var(--mono); font-size: 1.6rem; color: var(--gold); }

/* Wi-Fi chart, VM planner, shop */
.wifi-ch { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 3px; }
.wifi-ch button { min-height: 40px; border-radius: 6px; border: 1px solid var(--line); background: #0D1022; font-family: var(--mono); cursor: pointer; }
.wifi-ch button[aria-pressed="true"] { background: var(--purple); border-color: var(--purple); color: #fff; }
.vm-rows { display: grid; gap: .3rem; }
.vm-row { display: grid; grid-template-columns: minmax(120px, 1fr) 100px 100px; gap: .4rem; align-items: center; font-size: .82rem; }
.vm-row input { min-height: 36px; background: #070912; color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 0 .4rem; width: 100%; }
.shop-hud { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .4rem; }
.shop-hud div { background: #0D1022; border: 1px solid var(--line); border-radius: 8px; padding: .35rem .5rem; display: grid; }
.shop-hud span { font-size: .64rem; font-weight: 700; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.shop-hud b { font-family: var(--mono); color: var(--gold); font-size: 1.05rem; }
.shop-queue { display: flex; flex-wrap: wrap; gap: .3rem; }
.shop-queue span { padding: .2rem .55rem; border-radius: 999px; border: 1px solid var(--line); font-size: .74rem; }
.shop-queue span.cur { border-color: var(--gold); color: var(--gold); }
.shop-queue span.done { border-color: var(--green-lit); color: var(--green-lit); }
.ledger td, .ledger th { font-size: .8rem; }
.obj-table td, .obj-table th { font-size: .78rem; white-space: normal; vertical-align: top; }
.obj-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #2A3257; margin-right: .3rem; }
.obj-dot.p { background: var(--gold); } .obj-dot.c { background: var(--green-lit); }
.assume { font-size: .8rem; } .assume li { margin: .2rem 0; }
