/* PC Build Lab — styles. Dark workshop theme; tokens on :root. */
:root {
  --bg: #12151a; --panel: #1a1e25; --panel2: #222832; --line: #2f3742; --text: #e6e9ee; --muted: #94a0b0;
  --accent: #4cc9f0; --ok: #4ade80; --warn: #fbbf24; --bad: #f87171; --tip: #c4b5fd; --focus: #ffd166;
  --radius: 8px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font-size: 14px; overflow: hidden; }
button { font: inherit; color: var(--text); background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; cursor: pointer; min-height: 32px; }
button:hover:not(:disabled) { border-color: var(--accent); }
button:disabled { opacity: .45; cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; }
h3 { font-size: 13px; margin: 10px 0 6px; }
.small { font-size: 12px; color: var(--muted); }
.muted { color: var(--muted); font-size: 13px; }
.ok { color: var(--ok); } .bad { color: var(--bad); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; z-index: 99; background: #000; padding: 6px; }

/* top bar */
.topbar { height: 48px; display: flex; align-items: center; gap: 16px; padding: 0 14px; background: #0d1014; border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; font-size: 16px; white-space: nowrap; }
.brand small { font-weight: 400; color: var(--muted); margin-left: 6px; font-size: 12px; }
.brand .logo { color: var(--accent); }
.prog { flex: 1; display: flex; align-items: center; gap: 8px; max-width: 360px; margin-left: auto; }
.ptrack { flex: 1; height: 8px; background: var(--panel2); border-radius: 4px; overflow: hidden; }
#progress { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--ok)); transition: width .4s; }
#progressTxt { font-size: 12px; color: var(--muted); min-width: 36px; }
.tools { display: flex; gap: 8px; }
.esd { border-color: var(--bad); color: #fecaca; }
.esd:not(.on) { animation: pulse 2s infinite; }
.esd.on { border-color: var(--ok); color: var(--ok); }
@keyframes pulse { 50% { box-shadow: 0 0 0 4px rgba(248,113,113,.25); } }

/* layout */
.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr) 300px; height: calc(100vh - 48px); }
.tray-col, .side { background: var(--panel); padding: 10px; overflow: auto; }
.tray-col { border-right: 1px solid var(--line); }
.side { border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; overflow: hidden; }

/* tray */
.parts { display: flex; flex-direction: column; gap: 6px; }
.part { display: flex; align-items: center; gap: 8px; text-align: left; padding: 4px 8px; background: var(--panel2); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.part svg { flex: none; pointer-events: none; }
.part span { font-size: 13px; line-height: 1.2; pointer-events: none; }
.part.sel { border-color: var(--accent); background: #173445; box-shadow: 0 0 0 2px rgba(76,201,240,.35); }
.tray-col h3 { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
details { margin-top: 10px; font-size: 12px; color: var(--muted); }
details ul { margin: 4px 0; padding-left: 18px; }
details.rej summary { color: var(--bad); }
.detail { margin-top: 10px; background: var(--panel2); border: 1px solid var(--accent); border-radius: var(--radius); padding: 8px; }
.detail h3 { margin: 4px 0; }
.detail .dicon { background: #0e1116; border-radius: 6px; display: flex; justify-content: center; }
.detail p { margin: 4px 0 8px; }

/* work area */
.work { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.viewbar { display: flex; align-items: center; gap: 12px; padding: 6px 10px; border-bottom: 1px solid var(--line); min-height: 44px; }
.tabs { display: flex; gap: 4px; }
.tabs button[aria-selected="true"] { background: #173445; border-color: var(--accent); }
.selinfo { font-size: 13px; color: var(--accent); }
.stage { flex: 1; min-height: 0; position: relative; background: #0b0d10; }
#benchHost, #screenHost { position: absolute; inset: 0; }
#benchHost svg { width: 100%; height: 100%; display: block; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 10px; border-top: 1px solid var(--line); min-height: 50px; background: var(--panel); }
.actions button { background: #183042; border-color: #24506b; }
.actions button.pwr { background: #1d3b2a; border-color: #2f6b47; }
.actions button.danger { background: #4a1d1d; border-color: #7f2a2a; }

/* svg interactivity */
.target { fill: transparent; stroke: none; cursor: pointer; }
.target.active { fill: rgba(76,201,240,.12); stroke: var(--accent); stroke-width: 2; stroke-dasharray: 6 4; animation: dash 1s linear infinite; }
.target.hover, .target.active:hover { fill: rgba(76,201,240,.3); }
.target:focus { outline: none; stroke: var(--focus); stroke-width: 3; fill: rgba(255,209,102,.18); }
@keyframes dash { to { stroke-dashoffset: -20; } }
.hot { cursor: pointer; }
.hot:hover { filter: brightness(1.35) drop-shadow(0 0 3px var(--accent)); }
.spin { animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.glow { filter: drop-shadow(0 0 4px #ef4444); }

/* checklist + log */
.checklist-wrap { flex: 1.3; overflow: auto; min-height: 0; }
#checklist { list-style: none; margin: 0; padding: 0; }
#checklist > li { padding: 5px 6px; border-radius: 6px; color: var(--muted); font-size: 13px; }
#checklist > li .n { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--panel2); margin-right: 6px; font-size: 11px; }
#checklist > li.done { color: var(--ok); } #checklist > li.done .n { background: #14532d; }
#checklist > li.cur { background: var(--panel2); color: var(--text); border: 1px solid var(--line); }
#checklist > li.cur .n { background: var(--accent); color: #000; }
#checklist .why { font-size: 12px; color: var(--muted); margin: 6px 0; }
#checklist ul { list-style: none; padding-left: 4px; margin: 4px 0; font-size: 12.5px; }
#checklist ul li { margin: 3px 0; } #checklist ul li.ok { color: var(--ok); }
.logpanel { flex: 1; display: flex; flex-direction: column; min-height: 0; }
#log { flex: 1; overflow: auto; background: #0e1116; border-radius: 6px; padding: 6px 8px; font-size: 12.5px; }
#log p { margin: 0 0 6px; line-height: 1.35; }
#log .ok { color: var(--ok); } #log .error { color: var(--bad); } #log .warn { color: var(--warn); } #log .tip { color: var(--tip); } #log .info { color: var(--text); }

/* modal (front panel) */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: grid; place-items: center; z-index: 50; }
.dialog { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px; width: min(760px, 94vw); max-height: 94vh; overflow: auto; }
.dialog h2 { font-size: 16px; text-transform: none; letter-spacing: 0; color: var(--text); }
.fpwrap { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.manual { background: #f4efe1; color: #222; border-radius: 6px; padding: 10px; }
.manual h3 { margin-top: 0; } .manual .small { color: #555; }
.hdr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: #111; padding: 8px; border-radius: 6px; }
.manualhdr { background: #333; }
.reg { background: #2a2a2a; border: 1px dashed #666; border-radius: 4px; padding: 8px; text-align: center; font-size: 12px; color: #eee; min-height: 54px; }
.reg small { display: block; color: #bbb; font-size: 10px; }
.reg.slot { width: 100%; }
.pins { letter-spacing: 4px; color: #c9a24a; }
.plugs { display: flex; flex-wrap: wrap; gap: 6px; }
.plug { color: #000; font-weight: 700; border: 2px solid transparent; padding: 6px 10px; border-radius: 4px; font-size: 12px; }
.plug.held { border-color: #fff; box-shadow: 0 0 0 3px var(--accent); }
.row { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
button.primary { background: #1565c0; border-color: #1e88e5; }

.ghost { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; background: rgba(23,52,69,.95); border: 1px solid var(--accent); border-radius: 6px; padding: 4px 8px; display: flex; align-items: center; gap: 6px; font-size: 12px; }

/* ===== monitor screens ===== */
.monitor { position: absolute; inset: 10px; background: #000; border: 10px solid #222; border-radius: 10px; overflow: hidden; display: flex; }
.monitor > div { flex: 1; min-width: 0; }
.post { padding: 30px 40px; font-family: Consolas, "Courier New", monospace; color: #d1d5db; overflow: auto; }
.post .logo { font-size: 42px; font-weight: 800; color: #60a5fa; letter-spacing: .1em; margin-bottom: 10px; }
.post .big { font-size: 20px; } .post .mono { font-size: 18px; line-height: 1.5; }
kbd { background: #333; border: 1px solid #666; border-radius: 3px; padding: 1px 6px; }
.biosbtn { background: #1e293b; border-color: #60a5fa; font-family: inherit; margin: 6px 0; }
.biosbtn.sm { padding: 2px 8px; min-height: 26px; margin: 0; }
.bar { height: 6px; background: #222; border-radius: 3px; margin-top: 18px; max-width: 420px; overflow: hidden; }
.bar > div { height: 100%; background: #60a5fa; transition: width .25s linear; }
.bar.light { background: #dde3ea; } .bar.light > div { background: #0067c0; }
.explain { background: #111827; border-left: 3px solid var(--warn); padding: 8px 12px; margin: 14px 0; font-family: system-ui, sans-serif; font-size: 13px; color: #e5e7eb; }

.bios { display: flex; flex-direction: column; background: #0b1e3a; color: #dbeafe; font-family: Consolas, "Courier New", monospace; font-size: 13px; position: relative; outline: none; }
.bios:focus-visible { box-shadow: inset 0 0 0 3px var(--focus); }
.bhead { display: flex; justify-content: space-between; padding: 8px 12px; background: #102a52; border-bottom: 2px solid #3b82f6; }
.btabs { display: flex; gap: 2px; padding: 6px 8px 0; background: #102a52; }
.btabs button { font-family: inherit; background: transparent; border: none; border-radius: 4px 4px 0 0; color: #93c5fd; }
.btabs button[aria-selected="true"] { background: #0b1e3a; color: #fff; font-weight: 700; }
.bbody { flex: 1; display: grid; grid-template-columns: 1fr 260px; min-height: 0; }
.bitems { padding: 10px; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.bitem { display: flex; justify-content: space-between; gap: 10px; text-align: left; font-family: inherit; background: transparent; border: 1px solid transparent; color: #dbeafe; padding: 6px 8px; }
.bitem .v { color: #fde68a; }
.bitem.info { color: #93a9c9; } .bitem.info .v { color: #e5e7eb; }
.bitem.sel { background: #1e40af; border-color: #93c5fd; }
.bitem .bad, .bios .bad { color: #fca5a5; }
.bhelp { border-left: 1px solid #1e3a8a; padding: 10px; overflow: auto; font-size: 12px; background: #0d2447; }
.bhelp h4 { margin: 0 0 6px; color: #93c5fd; } .bhelp p { margin: 0 0 10px; line-height: 1.4; }
.bhelp ul { list-style: none; padding: 0; margin: 0; } .bhelp li.ok { color: #86efac; }
.bmsg { color: #fde68a; }
.bfoot { display: flex; justify-content: space-between; align-items: center; padding: 6px 12px; background: #102a52; font-size: 12px; color: #93c5fd; gap: 8px; }
.bconfirm { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); background: #1e3a8a; border: 2px solid #93c5fd; padding: 18px 24px; text-align: center; }

/* setup (installer) */
.setup { background: linear-gradient(135deg, #0a3d6b, #1b6ca8); display: grid; place-items: center; padding: 16px; overflow: auto; }
.swin { background: #f3f3f3; color: #1b1b1b; width: min(620px, 100%); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.5); font-family: "Segoe UI", system-ui, sans-serif; }
.stitle { background: #fff; padding: 10px 16px; border-radius: 8px 8px 0 0; font-size: 13px; border-bottom: 1px solid #ddd; }
.sbody { padding: 16px 22px; font-size: 14px; }
.sbody h3 { font-size: 20px; font-weight: 500; margin: 0 0 14px; }
.sbody label { display: block; margin: 10px 0; }
.sbody select, .sbody input:not([type]), .ocard input:not([type]) { display: block; width: 100%; margin-top: 4px; padding: 6px; font: inherit; border: 1px solid #999; border-radius: 4px; background: #fff; color: #111; }
.sbody label.radio { display: flex; gap: 8px; align-items: flex-start; }
.sfoot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.swin button, .ocard button, .dwin button { background: #fff; color: #111; border: 1px solid #aaa; }
.swin button.primary, .ocard button.primary, .dwin button.primary { background: #0067c0; color: #fff; border-color: #0067c0; }
.swin .bad { color: #b91c1c; } .swin .ok { color: #15803d; }
.swin .explain { color: #1b1b1b; background: #fff7e0; font-family: inherit; }
.req { list-style: none; padding: 0; } .req li { margin: 4px 0; }
.lic { background: #fff; border: 1px solid #ccc; padding: 10px; height: 90px; overflow: auto; font-size: 12px; }
.disks { width: 100%; border-collapse: collapse; background: #fff; font-size: 13px; }
.disks th, .disks td { text-align: left; padding: 6px; border-bottom: 1px solid #ddd; }

/* OOBE */
.oobe { background: linear-gradient(160deg, #e9eef6, #c9d6ea); display: grid; place-items: center; padding: 16px; overflow: auto; }
.oobe.dark { background: #0a2540; color: #fff; text-align: center; align-content: center; }
.ocard { background: #fff; color: #1b1b1b; border-radius: 12px; padding: 24px 28px; width: min(560px, 100%); box-shadow: 0 8px 24px rgba(0,0,0,.15); font-family: "Segoe UI", system-ui, sans-serif; }
.ocard h2 { font-size: 22px; text-transform: none; letter-spacing: 0; color: #1b1b1b; font-weight: 500; }
.ocard select { width: 100%; font: inherit; padding: 4px; color: #111; background: #fff; }
.ocard .small { color: #555; }
.privs { display: grid; gap: 6px; max-height: 240px; overflow: auto; }
.tog { display: flex; gap: 10px; align-items: flex-start; padding: 6px; border: 1px solid #e5e5e5; border-radius: 6px; }
.tog input { width: 18px; height: 18px; margin-top: 2px; }
.spinner { width: 46px; height: 46px; border: 4px solid rgba(255,255,255,.25); border-top-color: #fff; border-radius: 50%; margin: 0 auto 16px; animation: spin 1s linear infinite; }

/* desktop + report */
.desk { background: radial-gradient(ellipse at 30% 30%, #3b82c4, #0b3b6e 60%, #082848); position: relative; display: flex; justify-content: center; padding: 14px 14px 56px; overflow: auto; }
.dwin { background: #fff; color: #1b1b1b; border-radius: 8px; width: min(680px, 100%); align-self: flex-start; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.dwin .sfoot { padding: 0 16px 14px; }
.report { padding: 6px 20px; font-size: 13px; }
.report h2 { color: #0b3b6e; font-size: 18px; text-transform: none; letter-spacing: 0; }
.report h3 { margin: 12px 0 4px; } .report ul { margin: 4px 0; padding-left: 18px; }
.report .bad { color: #b91c1c; } .report .ok { color: #15803d; }
.report input { font: inherit; padding: 4px; background: #fff; color: #111; margin-left: 6px; border: 1px solid #aaa; border-radius: 4px; }
.printname { display: none; }
.taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 44px; background: rgba(20,24,32,.85); display: flex; justify-content: center; align-items: center; gap: 10px; }
.taskbar .tb { width: 26px; height: 26px; border-radius: 6px; background: linear-gradient(135deg, #60a5fa, #2563eb); }
.taskbar .tb:nth-child(2) { background: linear-gradient(135deg, #fbbf24, #d97706); }
.taskbar .tb:nth-child(3) { background: linear-gradient(135deg, #34d399, #059669); }
.taskbar .clock { position: absolute; right: 14px; font-size: 12px; color: #fff; }

/* screens mode: tray is inert */
body.screens .tray-col .parts { opacity: .5; }

/* narrower screens */
@media (max-width: 1200px) {
  .layout { grid-template-columns: 210px minmax(0, 1fr) 260px; }
  .brand small { display: none; }
}
@media (max-width: 900px) {
  body { overflow: auto; }
  .layout { grid-template-columns: 1fr; height: auto; }
  .stage { height: 70vh; }
  .side { max-height: 60vh; }
}

/* print: only the report */
@media print {
  body { background: #fff; overflow: visible; }
  .topbar, .tray-col, .side, .coach, .feedback, .actions-wrap, .viewtabs, .taskbar, .dwin .sfoot, .noprint-input, .stitle { display: none !important; }
  .layout, .work, .stage, #screenHost, .monitor, .desk { position: static; display: block; height: auto; border: 0; background: #fff; padding: 0; }
  .dwin { box-shadow: none; width: 100%; }
  .printname { display: block; }
}

/* ===== v2: coach, feedback, markers ===== */
.coach { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: #3a3210; border-bottom: 2px solid #facc15; min-height: 78px; }
.coach.warn { background: #4a2a10; border-color: #fb923c; }
.coach.holding { background: #0f3446; border-color: var(--accent); }
.coach.done { background: #14361f; border-color: var(--ok); }
.coach-main { flex: 1; min-width: 0; }
.coach-step { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: #fde68a; }
.coach.holding .coach-step { color: #a5f3fc; }
.coach-next { font-size: 19px; font-weight: 700; line-height: 1.25; margin: 2px 0; }
.coach-hint { font-size: 13.5px; color: #e7e2cc; line-height: 1.35; }
.coach.holding .coach-hint { color: #d6f3fb; }
.coach-btns { display: flex; flex-direction: column; gap: 6px; flex: none; }
.coach-btns button { min-height: 38px; font-size: 14px; padding: 6px 14px; }
.coach-btns button.primary { background: #facc15; color: #1a1500; border-color: #facc15; font-weight: 700; }
.coach.holding .coach-btns button { background: #164e63; }
.feedback { display: flex; gap: 8px; align-items: flex-start; padding: 7px 14px; font-size: 13.5px; line-height: 1.35; min-height: 36px; background: var(--panel); border-bottom: 1px solid var(--line); }
.feedback .fi { font-weight: 700; }
.feedback.ok { color: var(--ok); } .feedback.error { color: #fecaca; background: #3b1414; } .feedback.warn { color: var(--warn); background: #3a2c0c; }
.feedback.tip { color: var(--tip); } .feedback.info { color: var(--text); }
.feedback.pop { animation: pop .5s ease-out; }
@keyframes pop { from { filter: brightness(1.8); } to { filter: none; } }
.viewtabs { position: absolute; top: 8px; right: 10px; z-index: 5; }
.viewtabs button { background: rgba(20,24,30,.9); }
.actions-wrap { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-top: 1px solid var(--line); background: var(--panel); min-height: 46px; }
.actions-title { font-size: 12px; color: var(--muted); white-space: nowrap; }
.actions-wrap .actions { border: 0; padding: 0; min-height: 0; background: none; }
.actions button.minor { background: var(--panel2); border-color: var(--line); color: var(--muted); font-size: 12.5px; }
.part { min-height: 46px; }
.part span { font-size: 13.5px; }
.part.next { border-color: #facc15; box-shadow: 0 0 0 2px rgba(250,204,21,.4); position: relative; }
.part.next::after { content: 'NEXT'; position: absolute; right: 6px; top: 4px; font-size: 9px; font-weight: 800; color: #1a1500; background: #facc15; border-radius: 3px; padding: 1px 4px; }
.hot.pulse { animation: hotpulse 1.4s ease-in-out infinite; }
@keyframes hotpulse { 50% { filter: brightness(1.6) drop-shadow(0 0 6px #facc15) drop-shadow(0 0 2px #facc15); } }
.flash { animation: flash .6s ease-in-out 4 !important; }
@keyframes flash { 50% { box-shadow: 0 0 0 5px #facc15; filter: brightness(1.8) drop-shadow(0 0 8px #facc15); } }
.tlabel { font-size: 13px; font-weight: 700; fill: #e0f7ff; stroke: #031018; stroke-width: 3.5px; paint-order: stroke; pointer-events: none; }
.target.active { fill: rgba(76,201,240,.2); stroke-width: 2.5; }
.intro { max-width: 640px; }
.intro .lead { font-size: 15px; }
.howto { padding-left: 22px; line-height: 1.5; } .howto li { margin-bottom: 8px; }
.glow-demo { color: var(--accent); border: 1px dashed var(--accent); border-radius: 4px; padding: 0 4px; }
button.big { font-size: 16px; padding: 10px 22px; }

/* ===== v3: shop, start menu ===== */
#shopView { height: calc(100vh - 48px); overflow: hidden; }
.shop { height: 100%; display: flex; flex-direction: column; padding: 10px 14px; gap: 6px; }
.shop-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.shop-head h2 { font-size: 20px; text-transform: none; letter-spacing: 0; color: var(--text); margin: 0 0 2px; }
.shop-head p { margin: 0; max-width: 560px; }
.shop-ctl { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; border-radius: 0; background: var(--panel2); }
.seg button[aria-pressed="true"] { background: #173445; color: var(--accent); font-weight: 700; }
.budget { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.budget select, .budget input { font: inherit; background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 5px 6px; }
.budget input { width: 90px; }
.era-note { margin: 0; font-size: 12px; color: var(--muted); }
.shop-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 14px; }
.shop-main { display: flex; flex-direction: column; min-height: 0; gap: 6px; }
.shop-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.shop-tabs button[aria-selected="true"] { background: #173445; border-color: var(--accent); color: #fff; }
.shop-tabs button.has { color: var(--ok); }
.shop-tiers { display: flex; gap: 4px; flex-wrap: wrap; }
.shop-tiers button { font-size: 12px; min-height: 26px; padding: 2px 10px; border-radius: 14px; }
.shop-tiers button[aria-pressed="true"] { background: var(--accent); color: #001; border-color: var(--accent); }
.shop-cards { flex: 1; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; align-content: start; padding: 2px 4px 10px 0; }
.pcard { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 10px; background: var(--panel); border-radius: 10px; min-height: 120px; }
.pcard.picked { border-color: var(--ok); box-shadow: 0 0 0 2px rgba(74,222,128,.35); background: #12261a; }
.pcard.clash { border-color: #7f2a2a; }
.pc-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.pc-top b { font-size: 14px; line-height: 1.25; }
.pc-spec { font-size: 12px; color: var(--muted); line-height: 1.35; flex: 1; }
.pc-warn { font-size: 12px; color: #fca5a5; }
.pc-bot { display: flex; justify-content: space-between; align-items: center; }
.price { font-size: 17px; font-weight: 800; color: #fde68a; }
.pick { font-size: 12px; color: var(--accent); }
.pcard.picked .pick { color: var(--ok); font-weight: 700; }
.tier { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; padding: 2px 6px; border-radius: 4px; white-space: nowrap; background: var(--panel2); color: var(--muted); }
.t-low { color: #86efac; } .t-mid { color: #7dd3fc; } .t-high { color: #c4b5fd; } .t-extreme { color: #fca5a5; } .t-free { color: #fde68a; }
.shop-side { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; overflow: auto; }
.shop-side h3 { margin: 10px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.shop-side h3:first-child { margin-top: 0; }
.cart { list-style: none; margin: 0; padding: 0; }
.cart button { width: 100%; display: grid; grid-template-columns: 82px 1fr auto; gap: 6px; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 4px 2px; min-height: 0; font-size: 12.5px; }
.cart button:hover { background: var(--panel2); }
.cart .cc { color: var(--muted); } .cart .cp { color: #fde68a; } .cart button.empty .cn { color: #6b7280; font-style: italic; }
.totals { margin-top: 8px; }
.tline { display: flex; justify-content: space-between; align-items: baseline; }
.tline b { font-size: 20px; }
.tbar { height: 8px; background: var(--panel2); border-radius: 4px; overflow: hidden; margin: 4px 0; }
.tbar em { display: block; height: 100%; background: var(--ok); }
.tbar.over em { background: var(--bad); }
.compat { list-style: none; padding: 0; margin: 0; font-size: 12.5px; line-height: 1.35; }
.compat li { margin-bottom: 4px; } .compat .error { color: #fca5a5; } .compat .warn { color: var(--warn); } .compat .ok { color: var(--ok); }
.sbar { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; font-size: 12.5px; margin-bottom: 6px; }
.sbar i { grid-column: 1 / 3; height: 6px; background: var(--panel2); border-radius: 3px; overflow: hidden; }
.sbar em { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--ok)); }
.shop-go { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.shop-go .primary { font-weight: 700; padding: 8px 14px; }
.warnline { color: var(--warn); }
.start { max-width: 760px; }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0; }
.mode { display: flex; flex-direction: column; gap: 8px; text-align: left; padding: 16px; border-radius: 12px; background: var(--panel2); min-height: 170px; }
.mode:hover, .mode:focus-visible { border-color: #facc15; background: #2a2a18; }
.mode b { font-size: 17px; } .mode span:not(.mi) { color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.mi { font-size: 30px; }
.part.bad { border-color: #b91c1c; background: #2a1414; }
.badtag { display: block; color: #fca5a5; font-size: 11px; margin-top: 2px; }
.kitnote { font-size: 12px; color: var(--muted); margin: 10px 0 0; line-height: 1.5; }
.plist { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.plist td { padding: 3px 4px; border-bottom: 1px solid #e5e7eb; }
.plist td:first-child { color: #555; white-space: nowrap; }
.plist .num { text-align: right; white-space: nowrap; }
.plist .tot td { font-weight: 700; border-top: 2px solid #999; }
@media (max-width: 1100px) { .shop-body { grid-template-columns: minmax(0, 1fr) 300px; } }
@media (max-width: 900px) { #shopView { height: auto; overflow: visible; } .shop-body { grid-template-columns: 1fr; } .modes { grid-template-columns: 1fr; } }

body.shopping .esd, body.shopping .prog { visibility: hidden; }
