/* PC Builder-owned visual identity. No shared ecosystem CSS or runtime. */
@font-face{font-family:"DM Sans";font-style:normal;font-weight:400;font-display:swap;src:url("./fonts/yasa-0.ttf") format("truetype")}
@font-face{font-family:"DM Sans";font-style:normal;font-weight:500;font-display:swap;src:url("./fonts/yasa-1.ttf") format("truetype")}
@font-face{font-family:"DM Sans";font-style:normal;font-weight:600;font-display:swap;src:url("./fonts/yasa-2.ttf") format("truetype")}
@font-face{font-family:"DM Sans";font-style:normal;font-weight:700;font-display:swap;src:url("./fonts/yasa-3.ttf") format("truetype")}
@font-face{font-family:"Space Grotesk";font-style:normal;font-weight:400;font-display:swap;src:url("./fonts/yasa-4.ttf") format("truetype")}
@font-face{font-family:"Space Grotesk";font-style:normal;font-weight:500;font-display:swap;src:url("./fonts/yasa-5.ttf") format("truetype")}
@font-face{font-family:"Space Grotesk";font-style:normal;font-weight:600;font-display:swap;src:url("./fonts/yasa-6.ttf") format("truetype")}
@font-face{font-family:"Space Grotesk";font-style:normal;font-weight:700;font-display:swap;src:url("./fonts/yasa-7.ttf") format("truetype")}

html.pcb-brand{--pcb-copper:#f0a45b;--pcb-ink:#e5e7eb;--pcb-font-body:"DM Sans",sans-serif;--pcb-font-display:"Space Grotesk",sans-serif;color-scheme:dark;scrollbar-color:#60666e #111315}
html.pcb-brand:not([data-theme]),html.pcb-brand[data-theme=matrix]{--color-bg:#111315;--color-bg-secondary:#15181b;--color-primary:#f0a45b;--color-secondary:#c89568;--color-accent:#f0a45b;--color-dim:#24201c;--color-text:#e5e7eb;--color-text-muted:#a5abb4;--color-border:#30353b;--color-surface:#191c1f;--color-danger:#f28b82;--color-warning:#e8b86a;--color-success:#7ccaa3;--glow-color:240,164,91}
html.pcb-brand:not([data-font]),html.pcb-brand[data-font=jetbrains]{font-family:var(--pcb-font-body)}
.pcb-brand body{background:var(--color-bg);color:var(--color-text);font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased;caret-color:var(--color-primary)}
.pcb-brand ::selection{background:var(--color-primary);color:var(--color-bg)}
.pcb-brand ::-webkit-scrollbar{width:9px;height:9px}
.pcb-brand ::-webkit-scrollbar-thumb{background:#60666e;border-radius:8px;border:2px solid var(--color-bg)}
.pcb-brand :where(a,button,input,select,textarea):focus-visible{outline:2px solid var(--color-primary);outline-offset:4px;box-shadow:none}
.pcb-brand [role=region][tabindex]:focus-visible{outline:2px solid var(--color-primary);outline-offset:4px}
.pcb-brand h1,.pcb-brand h2,.pcb-brand h3{font-family:var(--pcb-font-display);color:var(--color-text);letter-spacing:-.025em;text-wrap:balance}
.pcb-brand main h1{font-size:clamp(1.75rem,3vw,2.5rem);line-height:1.18;margin-bottom:1.25rem}
.pcb-brand main{padding:36px 24px 56px}
.pcb-brand .text-xs{font-size:.8125rem;line-height:1.5}
.pcb-brand .text-sm{line-height:1.55}
.pcb-brand .tracking-widest,.pcb-brand .tracking-wider,.pcb-brand .tracking-wide{letter-spacing:.015em}
.pcb-brand .glow-text,.pcb-brand .group:hover .group-hover\:glow-text{text-shadow:none}
.pcb-brand .panel,.pcb-brand .panel-glow,.pcb-brand .glow-border,.pcb-brand .hover\:glow-border:hover{border:1px solid var(--color-border);border-radius:14px;background:var(--color-surface);box-shadow:none}
.pcb-brand .panel-glow{border-color:#41403c}
.pcb-brand .btn,.pcb-brand .btn-filled,.pcb-brand .btn-danger{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 18px;border-radius:8px;font-size:.875rem;font-weight:600;line-height:1.3;letter-spacing:0;text-shadow:none;transition:background-color .16s ease,border-color .16s ease,color .16s ease;box-shadow:none}
.pcb-brand .btn{color:var(--color-text);border-color:var(--color-border);background:transparent}
.pcb-brand .btn:hover{border-color:var(--color-primary);background:rgba(var(--glow-color),.08);box-shadow:none}
.pcb-brand .btn-filled{color:var(--color-bg);border-color:var(--color-primary);background:var(--color-primary)}
.pcb-brand .btn-filled:hover{background:color-mix(in srgb,var(--color-primary) 88%,white);border-color:transparent;box-shadow:none;filter:none}
.pcb-brand .btn:active,.pcb-brand .btn-filled:active{transform:none}
.pcb-brand .btn-danger{color:var(--color-danger)}
.pcb-brand :where(.btn,.btn-filled,.btn-danger):disabled{opacity:.5;cursor:not-allowed}
.pcb-brand .input,.pcb-brand .select{min-height:44px;border-radius:8px;background:var(--color-bg);border-color:var(--color-border);font-size:.9375rem;line-height:1.5;padding:10px 12px;box-shadow:none}
.pcb-brand .input:focus,.pcb-brand .select:focus{border-color:var(--color-primary);box-shadow:none}
.pcb-brand textarea.input{resize:vertical}
.pcb-brand .badge{border:1px solid var(--color-border);border-radius:6px;color:var(--color-text);background:var(--color-bg-secondary);font-weight:500}
.pcb-brand .crt-vignette{display:none}
.pcb-brand .text-\[\#00ff41\]{color:var(--color-primary)}
.pcb-brand .bg-\[\#0a0a0a\]{background:var(--color-bg)}
.pcb-brand .pcb-local-header{background:var(--color-bg);border-color:var(--color-border)}
.pcb-brand .pcb-local-header>div{height:auto;min-height:76px;max-width:1280px;margin:auto;padding:14px 28px;gap:20px;background:var(--color-bg)}
.pcb-brand .pcb-local-header>div>a:first-child{flex-shrink:0;gap:12px;color:var(--color-text)}
.pcb-brand .pcb-local-header>div>a:first-child:before{content:"";display:block;width:34px;height:34px;background:url("./mark.svg") center/contain no-repeat}
.pcb-brand .pcb-local-header>div>a:first-child>span:first-child{font-family:var(--pcb-font-display);font-size:1.25rem;letter-spacing:-.025em;color:var(--color-text);white-space:nowrap}
.pcb-brand .pcb-local-header>div>a:first-child>span:last-child{font-family:var(--pcb-font-body);font-size:.6875rem;letter-spacing:.02em}
.pcb-brand .pcb-local-header nav a{display:inline-flex;align-items:center;justify-content:center;min-height:40px;font-size:.8125rem;letter-spacing:.015em;border-radius:7px;padding:8px 14px}
.pcb-brand .pcb-local-header>nav{border-color:var(--color-border);background:var(--color-bg);padding:6px 16px;gap:4px;scrollbar-width:thin}
.pcb-brand .pcb-local-footer{background:var(--color-bg-secondary);border-color:var(--color-border)}
.pcb-brand .pcb-local-footer>div{max-width:1200px;padding:32px 28px 22px}
.pcb-brand .pcb-local-footer .text-primary{font-family:var(--pcb-font-display);font-size:1rem;letter-spacing:0;color:var(--color-text)}
.pcb-brand .pcb-local-footer a{line-height:1.6;text-underline-offset:4px}
.pcb-brand .pcb-local-footer a:hover{color:var(--color-primary)}

.pcb-brand .pcb-home{width:100%;max-width:1184px;margin:0 auto}
.pcb-brand .pcb-hero{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(240px,1fr);align-items:center;gap:64px;padding:64px 0 76px;border-bottom:1px solid var(--color-border)}
.pcb-brand .pcb-hero h1{font-size:clamp(2.75rem,5.4vw,4.75rem);font-weight:500;line-height:1.06;letter-spacing:-.035em;margin:0 0 26px;max-width:12ch;text-wrap:balance}
.pcb-brand .pcb-hero h1 span{display:block;color:var(--color-primary)}
.pcb-brand .pcb-hero p{max-width:46ch;color:var(--color-text-muted);font-size:1.125rem;line-height:1.7;margin:0 0 32px}
.pcb-brand .pcb-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.pcb-brand .pcb-actions .btn,.pcb-brand .pcb-actions .btn-filled{min-height:48px;padding:13px 20px;font-size:.9375rem}
.pcb-brand .pcb-hero-graphic{display:flex;justify-content:center;align-items:center;min-width:0}
.pcb-brand .pcb-hero-graphic img{width:min(100%,340px);height:auto}
.pcb-brand .pcb-stats{padding:32px 0;border-bottom:1px solid var(--color-border)}
.pcb-brand .pcb-stats h2{font-size:1rem;letter-spacing:0;font-weight:500;margin:0 0 20px;color:var(--color-text-muted)}
.pcb-brand .pcb-stat-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
.pcb-brand .pcb-stat{min-width:0}
.pcb-brand .pcb-stat strong{display:block;font-family:var(--pcb-font-display);font-size:2rem;line-height:1.2;font-weight:500;color:var(--color-text);font-variant-numeric:tabular-nums}
.pcb-brand .pcb-stat span{display:block;font-size:.8125rem;color:var(--color-text-muted);margin-top:4px;text-transform:capitalize}
.pcb-brand .pcb-capabilities{padding:68px 0}
.pcb-brand .pcb-capabilities>h2{font-size:clamp(1.75rem,3vw,2.5rem);font-weight:500;margin:0 0 12px}
.pcb-brand .pcb-capabilities>p{font-size:1rem;color:var(--color-text-muted);margin:0 0 32px;max-width:65ch}
.pcb-brand .pcb-feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:36px 40px}
.pcb-brand .pcb-feature{border-top:1px solid var(--color-border);padding-top:24px;min-width:0}
.pcb-brand .pcb-feature svg{width:26px;height:26px;color:var(--color-primary);margin-bottom:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.pcb-brand .pcb-feature h3{font-size:1.125rem;font-weight:500;letter-spacing:-.015em;line-height:1.3;margin:0 0 10px}
.pcb-brand .pcb-feature p{font-size:.9375rem;color:var(--color-text-muted);line-height:1.7;max-width:40ch}
.pcb-brand .pcb-start{display:flex;justify-content:space-between;align-items:center;gap:40px;padding:40px;border-radius:16px;background:var(--color-surface);margin:0 0 36px}
.pcb-brand .pcb-start h2{font-size:clamp(1.5rem,2.6vw,2rem);font-weight:500;margin:0 0 10px}
.pcb-brand .pcb-start p{max-width:53ch;color:var(--color-text-muted);font-size:1rem;line-height:1.65}
.pcb-brand .pcb-start .pcb-actions{flex-shrink:0;align-items:stretch;flex-direction:column}
@media(max-width:1000px){.pcb-brand .pcb-local-header>div{gap:12px;padding-inline:20px}.pcb-brand .pcb-local-header nav a{padding-inline:10px}.pcb-brand .pcb-hero{gap:40px}.pcb-brand .pcb-start{padding:32px}.pcb-brand .pcb-feature-grid{gap:32px 26px}}
@media(max-width:767px){.pcb-brand main{padding:28px 20px 40px}.pcb-brand .pcb-local-header>div{min-height:68px;padding:12px 20px;gap:12px}.pcb-brand .pcb-local-header>div>a:first-child:before{width:30px;height:30px}.pcb-brand .pcb-local-header>div>a:first-child>span:first-child{font-size:1.125rem}.pcb-brand .pcb-local-header>div>div{flex-wrap:wrap;justify-content:flex-end}.pcb-brand .pcb-hero{grid-template-columns:minmax(0,1fr);gap:32px;padding:28px 0 44px}.pcb-brand .pcb-hero h1{font-size:clamp(2.4rem,9vw,3.75rem);max-width:14ch;margin-bottom:22px}.pcb-brand .pcb-hero p{font-size:1.0625rem;margin-bottom:24px}.pcb-brand .pcb-hero-graphic{justify-content:flex-start}.pcb-brand .pcb-hero-graphic img{width:160px}.pcb-brand .pcb-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 24px}.pcb-brand .pcb-capabilities{padding:44px 0}.pcb-brand .pcb-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 16px}.pcb-brand .pcb-stat strong{font-size:1.75rem}.pcb-brand .pcb-start{align-items:flex-start;flex-direction:column;gap:24px;padding:28px}.pcb-brand .pcb-start .pcb-actions{flex-direction:row;flex-wrap:wrap}.pcb-brand .pcb-local-footer>div{padding-inline:20px}}
@media(max-width:420px){.pcb-brand .pcb-feature-grid{grid-template-columns:minmax(0,1fr)}.pcb-brand .pcb-hero .pcb-actions{align-items:stretch;flex-direction:column}.pcb-brand .pcb-hero .pcb-actions>a{width:100%}.pcb-brand .pcb-start .pcb-actions{width:100%;flex-direction:column}.pcb-brand .pcb-local-header>div>a:first-child{gap:8px}.pcb-brand .pcb-local-header>div>a:first-child>span:first-child{font-size:1.0625rem}.pcb-brand .pcb-local-header>div .btn{padding-inline:12px;font-size:.8125rem}}
@media(prefers-reduced-motion:reduce){.pcb-brand .pcb-home .btn,.pcb-brand .pcb-home .btn-filled{transition:none}.pcb-brand .pcb-home{scroll-behavior:auto}}
/* Keep full table columns inside an intentional phone scroll region. */
@media(max-width:767px){
 .pcb-brand main>div:has(>[class~="grid-cols-[2fr_1fr_100px_100px_120px]"]),.pcb-brand main .space-y-2:has(>[class~="grid-cols-[1fr_100px_100px_120px]"]){overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;padding-bottom:10px}
 .pcb-brand main [class~="grid-cols-[2fr_1fr_100px_100px_120px]"]{min-width:680px}
 .pcb-brand main [class~="grid-cols-[1fr_100px_100px_120px]"]{min-width:560px}
}

/* Local controls wrap below the shared header without widening tablet/phone pages. */
@media(max-width:1200px){.pcb-brand .pcb-local-header>div{flex-wrap:wrap}.pcb-brand .pcb-local-header>div>nav{order:3;flex:1 0 100%;justify-content:flex-start;overflow-x:auto}.pcb-brand .pcb-local-header>div>div:last-child{margin-left:auto;max-width:100%;min-width:0;flex-wrap:wrap;justify-content:flex-end;gap:8px}}
@media(max-width:767px){.pcb-brand .pcb-local-header>div>div:last-child{flex:1 0 100%;margin-left:0;justify-content:flex-start}}

/* Inventory phone headings and rows share one bounded horizontal scroll region. */
@media(max-width:767px){.pcb-brand main .min-w-0:has(>[class~="grid-cols-[2fr_1fr_80px_80px_60px]"]){overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin}.pcb-brand main [class~="grid-cols-[2fr_1fr_80px_80px_60px]"],.pcb-brand main .min-w-0:has(>[class~="grid-cols-[2fr_1fr_80px_80px_60px]"])>.overflow-y-auto{min-width:620px}}

/* Build editor: readable notes, natural document flow, responsive sections. */
.pcb-build-editor{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:28px;align-items:start;max-width:1440px;margin:0 auto}
.pcb-build-main{min-width:0;display:flex;flex-direction:column;gap:28px}
.pcb-build-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:16px}
.pcb-build-toolbar .pcb-build-name{flex:1 1 320px;min-width:0;max-width:none;font-size:1.125rem;font-weight:600}
.pcb-build-editor h2{font-size:1.125rem;line-height:1.35;margin:0 0 14px}
.pcb-build-notes,.pcb-build-components{min-width:0}
.pcb-build-editor .pcb-build-description{display:block;box-sizing:border-box;width:100%;min-height:132px;max-height:480px;resize:vertical;overflow:auto;font-family:var(--pcb-font-body);font-size:1rem;line-height:1.65;padding:16px;color:var(--color-text)}
.pcb-build-component-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.pcb-build-component{min-width:0;padding:18px;min-height:108px;overflow-wrap:anywhere}
.pcb-build-component>div:last-child{font-family:var(--pcb-font-body);line-height:1.5}
.pcb-build-component>div:last-child .text-sm{font-size:1rem}
.pcb-build-component-empty{background:transparent!important;color:var(--color-text-muted)}
.pcb-build-remove{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:5px;font-family:var(--pcb-font-body);font-size:1.25rem}
.pcb-build-stats{padding:22px;min-width:0;font-family:var(--pcb-font-body)}
.pcb-build-stats>.space-y-3{display:flex;flex-direction:column;gap:0}
.pcb-build-stat{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--color-border)}
.pcb-build-stat .text-sm{font-size:.9375rem;text-align:right;white-space:nowrap}
.pcb-build-stats>div:last-child{margin-top:18px}
@media(max-width:1050px){.pcb-build-editor{grid-template-columns:minmax(0,1fr)}.pcb-build-stats{max-width:none}.pcb-build-stats>.space-y-3{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px}}
@media(max-width:600px){.pcb-build-main{gap:24px}.pcb-build-toolbar .pcb-build-name{flex-basis:100%}.pcb-build-toolbar>.flex-1{display:none}.pcb-build-toolbar>.btn-filled{margin-left:auto}.pcb-build-component-grid{grid-template-columns:minmax(0,1fr)}.pcb-build-component{padding:16px;min-height:100px}.pcb-build-stats>.space-y-3{grid-template-columns:minmax(0,1fr)}.pcb-build-editor .pcb-build-description{font-size:1rem;max-height:420px}}
