.ph-store {
    --ph-ink: #101c30;
    --ph-muted: #4e5d74;
    --ph-border: #dae2ed;
    --ph-bg: #f2f5f9;
    --ph-white: #fff;
    --ph-accent: #b81532;
    --ph-accent-strong: #970f27;
    --ph-accent-soft: #fff0f2;
    --ph-focus: #1562bf;
    --ph-radius: 16px;
    --ph-shadow: 0 12px 30px rgba(16, 28, 48, .07);
    --pcmao-primary: var(--ph-accent);
    --pcmao-primary-dark: var(--ph-accent-strong);
    --pcmao-primary-soft: var(--ph-accent-soft);
    --pcmao-dark: var(--ph-ink);
    --pcmao-surface: var(--ph-bg);
    color: var(--ph-ink);
    background: var(--ph-bg);
    font-family: "Segoe UI", system-ui, sans-serif;
}

.ph-store :focus-visible { outline: 2px solid var(--ph-focus); outline-offset: 3px; }
.ph-store [hidden] { display: none !important; }
.ph-store [id] { scroll-margin-top: 170px; }
.ph-store :is(.ph-home, .ph-workspace, .site-header, .site-footer) a { text-decoration: none; }
.ph-store:not(.admin-body):not(.admin-auth-page) .site-header { background: var(--ph-white); }
.ph-store .site-footer { margin-top: 0; }
.ph-store .footer-contact a { justify-self: start; color: var(--ph-accent); }
.ph-store .footer-contact a:hover { text-decoration: underline; }
.ph-icon { width: 1.2em; height: 1.2em; flex: none; vertical-align: middle; }
.ph-skip-link {
    position: fixed;
    z-index: 2100;
    top: 10px;
    left: 12px;
    transform: translateY(calc(-100% - 20px));
    padding: 12px 16px;
    color: var(--ph-white);
    background: var(--ph-ink);
    border-radius: 8px;
}
.ph-skip-link:focus { transform: none; color: var(--ph-white); }

.ph-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 14px;
}
.ph-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 10px;
    border-bottom: 2px solid transparent;
    color: var(--ph-ink);
    font-size: .9rem;
    font-weight: 650;
}
.ph-nav a:hover,
.ph-nav a[aria-current] { color: var(--ph-accent); border-bottom-color: currentColor; }
.ph-nav .ph-nav-finder { color: var(--ph-accent); }
.ph-nav [data-compare-count] {
    min-width: 20px;
    border-radius: 16px;
    background: var(--ph-accent-soft);
    text-align: center;
    font-size: .75rem;
}

.ph-home, .ph-workspace { padding-top: 26px; padding-bottom: 54px; }
.ph-block { margin-top: 44px; }
.ph-eyebrow {
    margin: 0 0 9px;
    color: var(--ph-accent);
    font-size: .82rem;
    font-weight: 750;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.ph-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid transparent;
    border-radius: 9px;
    font: inherit;
    font-size: .94rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.ph-button-primary { color: var(--ph-white); background: var(--ph-accent); }
.ph-button-primary:hover { color: var(--ph-white); background: var(--ph-accent-strong); }
.ph-button-dark { color: var(--ph-white); background: var(--ph-ink); }
.ph-button-dark:hover { color: var(--ph-white); background: #263952; }
.ph-button-light { color: var(--ph-ink); border-color: var(--ph-border); background: var(--ph-white); }
.ph-button-light:hover { color: var(--ph-accent); border-color: var(--ph-accent); }
.ph-button-ghost { color: var(--ph-white); border-color: #738299; background: rgba(16, 28, 48, .5); }
.ph-button-ghost:hover { color: var(--ph-white); background: #253950; }
.ph-button:disabled { color: #4e5d74; background: #e7edf5; cursor: default; }

.ph-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    min-height: 430px;
    isolation: isolate;
    overflow: hidden;
    border-radius: 22px;
    background: #0d1b31;
    color: var(--ph-white);
}
.ph-hero-copy {
    z-index: 1;
    align-self: center;
    padding: clamp(30px, 6vw, 86px) 0 clamp(30px, 6vw, 86px) clamp(28px, 5vw, 72px);
}
.ph-hero .ph-eyebrow { color: #ffb8c3; }
.ph-hero h1 {
    margin: 0 0 17px;
    font-size: clamp(2.45rem, 4.25vw, 4.15rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.055em;
    text-wrap: balance;
}
.ph-hero h1 em { color: #ff9aac; font-style: normal; }
.ph-hero-copy > p:not(.ph-eyebrow) { max-width: 440px; margin-bottom: 24px; color: #e1e8f3; font-size: 1.06rem; }
.ph-hero-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.ph-hero :focus-visible, .ph-compare-bar :focus-visible { outline-color: #a6ceff; }
.ph-hero-media { position: absolute; inset: 0 0 0 41%; z-index: -1; }
.ph-hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 57%; }
.ph-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0d1b31 0%, #0d1b3166 27%, transparent 60%); }
.ph-hero-setup { background: #16151b; }
.ph-hero-setup .ph-hero-media { inset-inline-start: 38%; }
.ph-hero-setup .ph-hero-media img { object-position: 61% 58%; }
.ph-hero-setup .ph-hero-media::after { background: linear-gradient(90deg, #16151b, #16151b28 36%, transparent 65%); }
.ph-home-offer-link {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 18px;
    padding: 14px 18px;
    margin-top: 14px;
    border: 1px solid #efd3d9;
    border-radius: var(--ph-radius);
    background: var(--ph-accent-soft);
    color: var(--ph-ink);
}
.ph-home-offer-link > span { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.ph-home-offer-link strong, .ph-home-offer-link > span:last-child { color: var(--ph-accent); }
@media (max-width: 767px) {
    .ph-hero-setup .ph-hero-media { inset-inline-start: auto; }
    .ph-hero-setup .ph-hero-media::after { background: linear-gradient(180deg, #16151b, transparent 36%); }
}

.ph-section-head, .ph-results-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px 18px;
    margin-bottom: 14px;
}
.ph-section-head h2, .ph-results-head h2, .ph-finder-results > h2 {
    margin: 0;
    font-size: clamp(1.38rem, 2.5vw, 2rem);
    font-weight: 760;
    letter-spacing: -.025em;
}
.ph-section-head p, .ph-results-head span { margin: 5px 0 0; color: var(--ph-muted); }
.ph-text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--ph-accent); font-weight: 700; }
.ph-text-link:hover { color: var(--ph-accent-strong); text-decoration: underline !important; }
.ph-category-grid, .ph-grid, .ph-guide-grid, .ph-offer-grid, .ph-support-band { display: grid; gap: 13px; }
.ph-category-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ph-category-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--ph-border);
    border-radius: var(--ph-radius);
    color: var(--ph-ink);
    background: var(--ph-white);
    overflow-wrap: anywhere;
}
.ph-category-card:hover, .ph-guide-card:hover { color: var(--ph-accent); border-color: var(--ph-accent); }
.ph-category-card small { color: var(--ph-muted); line-height: 1.4; }
.ph-category-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 5px;
    border-radius: 10px;
    color: var(--ph-accent);
    background: var(--ph-accent-soft);
    font-size: 1.16rem;
}
.ph-grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ph-grid-three, .ph-guide-grid, .ph-offer-grid, .ph-support-band { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ph-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--ph-border);
    border-radius: var(--ph-radius);
    background: var(--ph-white);
}
.ph-card:hover { border-color: #a9bad1; box-shadow: var(--ph-shadow); }
.ph-card-media {
    position: relative;
    aspect-ratio: 5 / 3.9;
    border-radius: 10px;
    background: #f1f4f8;
}
.ph-card-media > a { position: absolute; inset: 0; display: grid; place-items: center; border-radius: inherit; }
.ph-card-media img { display: block; width: 100%; height: 100%; max-height: 100%; position: absolute; object-fit: contain; padding: 8px; border-radius: inherit; }
.ph-card-media .ph-favorite { position: absolute; right: 4px; top: 4px; margin: 0; }
.ph-store .ph-card .favorite-button { display: grid; place-items: center; width: 44px; height: 44px; }
.ph-discount {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 9px;
    border-radius: 6px;
    background: var(--ph-accent);
    color: var(--ph-white);
    font-size: .78rem;
    font-weight: 700;
}
.ph-card-body { display: flex; flex: 1; flex-direction: column; gap: 7px; padding: 12px 4px 4px; min-width: 0; }
.ph-card-category { margin: 0; color: var(--ph-muted); font-size: .82rem; font-weight: 600; }
.ph-card-body h3 { margin: 0; font-size: 1.02rem; font-weight: 720; line-height: 1.35; overflow-wrap: anywhere; }
.ph-card-body h3 a { color: var(--ph-ink); }
.ph-card-body h3 a:hover { color: var(--ph-accent); }
.ph-card-specs { margin: 0 0 5px; color: var(--ph-muted); font-size: .88rem; line-height: 1.45; overflow-wrap: anywhere; }
.ph-card-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 7px; margin-top: auto; }
.ph-card-price strong { color: var(--ph-accent); font-size: clamp(1.02rem, 1.5vw, 1.28rem); font-variant-numeric: tabular-nums; }
.ph-card-price del { color: var(--ph-muted); font-size: .8rem; }
.ph-stock { margin: 0; color: #246043; font-size: .83rem; font-weight: 700; }
.ph-stock-empty { color: var(--ph-muted); }
.ph-card-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.ph-card-actions form { flex: 1 1 114px; }
.ph-card-actions .ph-button { width: 100%; padding-inline: 8px; font-size: .86rem; }
.ph-compare-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 44px;
    padding: 6px 9px;
    border: 1px solid var(--ph-border);
    border-radius: 9px;
    background: var(--ph-white);
    color: var(--ph-ink);
    font-size: .84rem;
    font-weight: 650;
}
.ph-compare-button:hover, .ph-compare-button[aria-pressed="true"] {
    border-color: var(--ph-accent);
    background: var(--ph-accent-soft);
    color: var(--ph-accent);
}
.ph-guide-card, .ph-offer, .ph-support-band > * {
    display: grid;
    align-content: start;
    gap: 5px;
    padding: 19px;
    border: 1px solid var(--ph-border);
    border-radius: var(--ph-radius);
    color: var(--ph-ink);
    background: var(--ph-white);
}
.ph-guide-card strong { font-size: 1.12rem; }
.ph-guide-card span, .ph-offer p, .ph-support-band small { color: var(--ph-muted); }
.ph-guide-card .ph-icon { margin-top: 5px; color: var(--ph-accent); }
.ph-offer { gap: 10px; background: var(--ph-accent-soft); }
.ph-offer h3 { margin: 0; font-size: 1.06rem; font-weight: 720; }
.ph-offer p { margin: 0; }
.ph-promo-code { justify-self: start; padding: 3px 9px; border: 1px dashed var(--ph-accent); border-radius: 5px; color: var(--ph-accent); font-weight: 750; }
.ph-support-band { margin-top: 36px; }
.ph-support-band > * { grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
.ph-support-band .ph-icon { color: var(--ph-accent); font-size: 1.25rem; }
.ph-support-band :is(small, strong) { display: block; }
.ph-support-band a:hover { border-color: var(--ph-accent); }

.ph-page-heading {
    margin-bottom: 22px;
    padding: clamp(19px, 4vw, 42px);
    border: 1px solid var(--ph-border);
    border-radius: var(--ph-radius);
    background: linear-gradient(115deg, #fff 38%, #e5edf8 100%);
}
.ph-page-heading h1 { margin: 0 0 7px; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.12; font-weight: 800; letter-spacing: -.04em; }
.ph-page-heading p:not(.ph-eyebrow) { max-width: 62ch; margin: 0; color: var(--ph-muted); }
.ph-catalog-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 13px; }
.ph-catalog-layout { display: grid; grid-template-columns: minmax(200px, 248px) minmax(0, 1fr); align-items: start; gap: 18px; }
.ph-filter-panel, .ph-finder-panel, .ph-empty {
    padding: clamp(15px, 2vw, 26px);
    border: 1px solid var(--ph-border);
    border-radius: var(--ph-radius);
    background: var(--ph-white);
}
.ph-filter-panel { padding-block: 5px 10px; }
.ph-filter-panel summary { min-height: 44px; padding-block: 8px; font-size: 1.2rem; font-weight: 740; cursor: pointer; }
.ph-filter { display: grid; gap: 5px; padding-bottom: 4px; }
.ph-filter label, .ph-price-fields legend, .ph-finder-fields label { display: block; margin: 8px 0 0; font-size: .94rem; font-weight: 650; }
.ph-filter :is(.form-control, .form-select), .ph-finder-fields :is(.form-control, .form-select) { min-height: 44px; color: var(--ph-ink); border-color: #b5c4d8; }
.ph-price-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.ph-price-fields label { margin-top: 0; color: var(--ph-muted); font-size: .83rem; }
.ph-price-fields input::placeholder { color: var(--ph-muted); opacity: 1; }
.ph-filter .ph-stock-filter { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.ph-stock-filter input { width: 18px; height: 18px; accent-color: var(--ph-accent); }
.ph-filter-actions { display: grid; justify-items: stretch; margin-top: 8px; }
.ph-filter-actions .ph-text-link { justify-content: center; }
.ph-catalog-results { min-width: 0; }
.ph-results-head { min-height: 42px; }
.ph-results-head h2 { font-size: 1.18rem; overflow-wrap: anywhere; }
.ph-empty :is(h2, h3) { font-size: 1.25rem; font-weight: 740; }
.ph-empty p { color: var(--ph-muted); }
.ph-empty p:last-child { margin-bottom: 0; }
.ph-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 5px; margin-top: 18px; }
.ph-pagination a { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 4px 9px; border: 1px solid var(--ph-border); border-radius: 8px; background: var(--ph-white); color: var(--ph-ink); }
.ph-pagination a:hover, .ph-pagination a[aria-current] { border-color: var(--ph-accent); color: var(--ph-accent); background: var(--ph-accent-soft); }

.ph-finder-panel { box-shadow: var(--ph-shadow); }
.ph-finder-needs legend { font-size: 1.12rem; font-weight: 730; }
.ph-need-options, .ph-finder-fields { display: grid; gap: 9px; }
.ph-need-options { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ph-need-option { display: block; position: relative; cursor: pointer; }
.ph-need-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ph-need-option span { display: flex; align-items: center; gap: 8px; min-height: 52px; height: 100%; padding: 9px; border: 1px solid var(--ph-border); border-radius: 9px; font-weight: 650; }
.ph-need-option input:checked + span { border-color: var(--ph-accent); color: var(--ph-accent); background: var(--ph-accent-soft); }
.ph-need-option input:focus-visible + span { outline: 2px solid var(--ph-focus); outline-offset: 3px; }
.ph-finder-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) auto; align-items: end; margin-top: 16px; }
.ph-finder-fields :is(.form-control, .form-select) { margin-top: 5px; }
.ph-finder-budgets { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.ph-finder-budgets > span { margin-right: 5px; color: var(--ph-muted); font-weight: 650; }
.ph-finder-budgets button[aria-pressed="true"] { border-color: var(--ph-accent); color: var(--ph-accent); background: var(--ph-accent-soft); }
.ph-finder-results { margin-top: 30px; }
.ph-method-note { margin: 14px 0 0; color: var(--ph-muted); font-size: .9rem; }

.ph-compare-scroll { overflow: auto; border: 1px solid var(--ph-border); border-radius: var(--ph-radius); background: var(--ph-white); }
.ph-compare-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.ph-compare-table th, .ph-compare-table td { min-width: 0; border-bottom: 1px solid var(--ph-border); padding: 12px 14px; overflow-wrap: anywhere; vertical-align: top; }
.ph-compare-table th:first-child { width: 126px; background: #f4f7fb; }
.ph-compare-table tbody tr:nth-child(even) td { background: #f8fafd; }
.ph-compare-table tr:last-child td, .ph-compare-table tr:last-child th { border-bottom-width: 0; }
.ph-compare-table thead th { border-bottom-width: 1px !important; }
.ph-compare-table thead a { display: block; color: var(--ph-ink); }
.ph-compare-table thead img { display: block; max-width: 100%; object-fit: contain; background: var(--ph-bg); border-radius: 8px; margin-bottom: 8px; }
.ph-compare-table .ph-remove { display: inline-flex; align-items: center; min-height: 44px; color: var(--ph-accent); font-size: .86rem; }
.ph-compare-price { color: var(--ph-accent); font-size: 1.13rem; font-weight: 750; }
.ph-compare-scroll-hint { display: none; color: var(--ph-muted); }
.ph-compare-bar {
    position: fixed;
    z-index: 1040;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px 20px;
    width: max-content;
    max-width: calc(100% - 24px);
    padding: 9px 13px;
    border-radius: 13px;
    color: var(--ph-white);
    background: var(--ph-ink);
    box-shadow: 0 9px 30px #101c3066;
}
.ph-compare-bar p { margin: 0; }
.ph-compare-bar p span { display: block; color: #dde6f2; font-size: .84rem; }
.ph-compare-bar > div { display: flex; gap: 7px; }
.ph-has-compare { padding-bottom: 88px; }

@media (max-width: 991px) {
    .ph-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ph-grid-four, .ph-catalog-results .ph-grid-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ph-hero { min-height: 350px; }
}

@media (max-width: 767px) {
    .ph-home, .ph-workspace { padding-top: 16px; padding-bottom: 32px; }
    .ph-block { margin-top: 29px; }
    .ph-hero { grid-template-columns: minmax(0, 1fr); min-height: auto; }
    .ph-hero-copy { padding: 28px 22px; }
    .ph-hero-copy > p:not(.ph-eyebrow) { font-size: 1rem; }
    .ph-hero-media { position: relative; inset: auto; aspect-ratio: 2.2; }
    .ph-hero-media img { object-position: 50% 56%; }
    .ph-hero-media::after { background: linear-gradient(180deg, #0d1b31 0%, #0d1b3100 44%); }
    .ph-catalog-layout { grid-template-columns: minmax(0, 1fr); }
    .ph-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; column-gap: 8px; }
    .ph-filter :is(fieldset, .ph-filter-actions) { grid-column: 1 / -1; }
    .ph-filter label { margin-top: 0; }
    .ph-filter .ph-stock-filter { grid-column: 1 / -1; }
    .ph-guide-grid, .ph-offer-grid, .ph-support-band, .ph-finder-results .ph-grid-three { grid-template-columns: minmax(0, 1fr); }
    .ph-finder-fields { grid-template-columns: minmax(0, 1fr); }
    .ph-need-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ph-compare-table { table-layout: auto; }
    .ph-compare-table th:not(:first-child), .ph-compare-table td { min-width: 155px; }
    .ph-compare-table th:first-child { min-width: 98px; position: sticky; left: 0; }
    .ph-compare-scroll-hint { display: block; }
    .ph-has-compare .support-chat-trigger { bottom: 114px; }
    .ph-has-compare :focus-visible { scroll-margin-bottom: 115px; }
}

@media (max-width: 479px) {
    .ph-nav { gap: 0 3px; }
    .ph-nav a { padding-inline: 5px; font-size: .83rem; }
    .ph-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .ph-category-card { padding: 11px; }
    .ph-grid { gap: 8px; }
    .ph-card-actions .ph-compare-button { width: 100%; }
    .ph-card { padding: 7px; }
    .ph-card-body { padding-inline: 2px; }
    .ph-compare-bar { flex-wrap: wrap; gap: 6px; }
    .ph-compare-bar .ph-button { padding-inline: 10px; font-size: .84rem; }
    .ph-compare-bar p { width: 100%; }
    .ph-has-compare { padding-bottom: 124px; }
    .ph-need-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.ph-build-examples, .ph-build-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ph-build-examples { margin-bottom: 16px; }
.ph-build-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: start;
    gap: 16px;
}
.ph-build-options { display: grid; gap: 10px; min-width: 0; }
.ph-build-assist {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding: 18px clamp(16px, 3vw, 26px);
    margin: 0 0 16px;
    border: 1px solid var(--ph-border);
    border-radius: var(--ph-radius);
    background: var(--ph-white);
}
.ph-build-assist h2 { font-size: 1.2rem; margin: 0 0 4px; font-weight: 760; }
.ph-build-assist p { margin: 0; color: var(--ph-muted); }
.ph-build-assist form { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; }
.ph-build-assist input { min-height: 44px; }
.ph-build-assist label { display: grid; gap: 3px; }
.ph-build-assist p.ph-build-assist-result { flex-basis: 100%; font-weight: 650; }
.ph-build-sample-links { margin-inline-start: 4px; }
.ph-build-sample-links summary { cursor: pointer; padding: 10px 4px; color: var(--ph-muted); }
.ph-build-sample-links a { margin-inline: 4px 8px; }
.ph-build-profile { margin-bottom: 16px; padding: 15px 18px; border: 1px solid var(--ph-border); border-radius: var(--ph-radius); background: var(--ph-white); }
.ph-build-profile summary { cursor: pointer; font-weight: 760; min-height: 36px; padding-block: 6px; }
.ph-build-profile form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 10px; margin-top: 10px; }
.ph-build-profile label { display: grid; align-content: start; gap: 4px; }
.ph-build-profile input { min-height: 44px; }
.ph-build-profile form p { grid-column: 1 / -1; margin: 0; color: var(--ph-muted); }
.ph-build-profile button { justify-self: start; }
.ph-build-slot-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ph-build-slot-head [hidden], .ph-build-slot select[hidden], .ph-part-picker [hidden] { display: none !important; }
.ph-build-extras-title { margin-top: 11px; padding: 15px 17px 10px; border-top: 1px solid var(--ph-border); }
.ph-build-extras-title h2 { margin: 0 0 5px; font-size: clamp(1.17rem, 3vw, 1.45rem); font-weight: 760; }
.ph-build-extras-title p { margin: 0; color: var(--ph-muted); }
.ph-build-saved-list { display: grid; gap: 7px; margin-block: 10px; }
.ph-build-saved-list[hidden] { display: none; }
.ph-build-save-name { display: block; margin-block: 10px; }
.ph-build-save-name input { margin-top: 4px; }
.ph-build-sharing :is(input, select) { min-height: 44px; }
.ph-build-picker-trigger { flex-shrink: 0; }
.ph-part-picker {
    width: min(900px, calc(100% - 28px));
    max-height: calc(100dvh - 28px);
    margin: auto;
    padding: clamp(15px, 3vw, 28px);
    border: 1px solid var(--ph-border);
    border-radius: 22px;
    color: var(--ph-ink);
    background: var(--ph-white);
    box-shadow: var(--ph-shadow);
    overflow: auto;
}
.ph-part-picker::backdrop { background: rgb(13 27 49 / 68%); }
.ph-part-picker-head, .ph-part-picker-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px 16px;
}
.ph-part-picker-head h2 { margin: 0; font-size: clamp(1.2rem, 4vw, 1.65rem); font-weight: 760; }
.ph-part-picker-filters {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0 8px;
}
.ph-part-picker-filters label { font-size: .91rem; font-weight: 690; }
.ph-part-picker-filters :is(input, select) { margin-top: 4px; min-height: 44px; }
.ph-part-picker-summary { min-height: 44px; }
.ph-part-picker-summary p { margin: 0; color: var(--ph-muted); }
.ph-part-picker-summary button { border: 0; background: transparent; }
.ph-part-picker-results { display: grid; gap: 10px; }
.ph-part-result {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border: 1px solid var(--ph-border);
    border-radius: 13px;
    background: #f6f8fc;
    overflow-wrap: anywhere;
}
.ph-part-result-image { object-fit: contain; border-radius: 10px; background: var(--ph-white); }
.ph-part-result-copy, .ph-part-result-action { display: grid; gap: 3px; min-width: 0; }
.ph-part-result-copy span, .ph-part-result small { color: var(--ph-muted); }
.ph-part-result-action { justify-items: end; text-align: right; }
.ph-part-result-action strong { color: var(--ph-accent); }
@media (max-width: 650px) {
    .ph-part-picker-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ph-part-picker-filters label:first-child { grid-column: 1 / -1; }
    .ph-part-result { grid-template-columns: auto minmax(0, 1fr); }
    .ph-part-result-action { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
    .ph-part-result-image { width: 52px; height: 52px; }
}
.ph-build-slot, .ph-build-summary {
    padding: clamp(14px, 2.2vw, 24px);
    border: 1px solid var(--ph-border);
    border-radius: var(--ph-radius);
    background: var(--ph-white);
}
.ph-build-slot label { display: block; margin-bottom: 6px; font-weight: 750; }
.ph-build-slot select { min-height: 44px; color: var(--ph-ink); border-color: #b5c4d8; }
.ph-build-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    padding: 8px;
    border: 1px solid var(--ph-border);
    border-radius: 11px;
    background: var(--ph-bg);
    color: var(--ph-ink);
}
.ph-build-preview[href]:hover { border-color: var(--ph-accent); color: var(--ph-ink); background: var(--ph-white); }
.ph-build-preview-media { flex: 0 0 auto; width: clamp(54px, 15vw, 80px); }
.ph-build-preview-media img { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--ph-white); }
.ph-build-preview-copy { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; line-height: 1.35; }
.ph-build-part-detail { color: var(--ph-muted); font-size: .87rem; }
.ph-build-preview-link { color: var(--ph-accent); font-size: .87rem; font-weight: 700; }
.ph-build-preview[href]:hover .ph-build-preview-link { text-decoration: underline; }
.ph-build-illustration {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    background: #e6eaf1 url("../images/build-components-v1.jpg") no-repeat 0 0 / 400% 200%;
}
[data-build-illustration="board"] { background-position: 33.333% 0; }
[data-build-illustration="ram"] { background-position: 66.667% 0; }
[data-build-illustration="gpu"] { background-position: 100% 0; }
[data-build-illustration="ssd"] { background-position: 0 100%; }
[data-build-illustration="psu"] { background-position: 33.333% 100%; }
[data-build-illustration="case"] { background-position: 66.667% 100%; }
.ph-build-sample {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    align-items: start;
    gap: clamp(20px, 4vw, 52px);
    padding: clamp(16px, 4vw, 48px);
    border: 1px solid var(--ph-border);
    border-radius: var(--ph-radius);
    background: var(--ph-white);
}
.ph-build-sample-figure { margin: 0; }
.ph-build-sample-figure figcaption { margin-top: 8px; color: var(--ph-muted); font-size: .87rem; text-align: center; }
.ph-build-sample-copy h1 { font-size: clamp(1.6rem, 3.2vw, 2.7rem); font-weight: 800; overflow-wrap: anywhere; }
.ph-build-sample-copy > p:not(.ph-eyebrow) { color: var(--ph-muted); }
.ph-build-sample-specs { margin: 18px 0 0; }
.ph-build-sample-specs > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px 12px;
    padding: 10px 0;
    border-top: 1px solid var(--ph-border);
}
.ph-build-sample-specs dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.ph-build-sample-price { color: var(--ph-accent); font-weight: 750; }
.ph-parts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr)); gap: 12px; }
.ph-parts-filters { margin-bottom: 22px; }
.ph-parts-section + .ph-parts-section { margin-top: 28px; }
.ph-parts-section .ph-section-head > span { color: var(--ph-muted); font-size: .9rem; }
.ph-part-card { color: var(--ph-ink); }
.ph-part-card:hover { color: var(--ph-ink); border-color: var(--ph-accent); }
.ph-part-photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 8px; background: var(--ph-bg); }
.ph-part-card-media { position: relative; }
.ph-part-photo-wattage {
    position: absolute;
    bottom: 6px;
    right: 6px;
    padding: 3px 6px;
    border-radius: 5px;
    background: var(--ph-ink);
    color: var(--ph-white);
    font-size: .79rem;
    font-weight: 750;
}
.ph-part-card-variant { margin: 0; color: var(--ph-muted); font-size: .78rem; overflow-wrap: anywhere; }
.ph-part-card-facts { display: grid; gap: 4px; margin: 2px 0 6px; font-size: .84rem; }
.ph-part-card-facts > div { padding: 5px 7px; border-radius: 6px; background: var(--ph-bg); overflow-wrap: anywhere; }
.ph-part-card-facts dt { color: var(--ph-muted); font-size: .74rem; font-weight: 600; }
.ph-part-card-facts dd { margin: 0; color: var(--ph-ink); font-weight: 700; }
.ph-build-sample-figure figcaption a { color: var(--ph-accent); text-decoration: underline; }
.ph-part-card-link { margin-top: auto; color: var(--ph-accent); font-size: .88rem; font-weight: 750; }
.ph-part-card:hover .ph-part-card-link { text-decoration: underline; }
.ph-part-note {
    margin: 12px 0 16px;
    padding: 10px 12px;
    border-left: 3px solid var(--ph-border);
    border-radius: 6px;
    background: var(--ph-bg);
    color: var(--ph-muted);
    font-size: .9rem;
}
.ph-part-specs-title { margin: 18px 0 8px; font-size: 1.05rem; font-weight: 750; }
.ph-part-specs { margin-top: 0; }
.ph-build-summary h2 { margin: 0 0 12px; font-size: 1.3rem; font-weight: 750; }
.ph-build-state {
    margin: 0;
    padding: 9px 11px;
    border-radius: 8px;
    background: var(--ph-bg);
    color: var(--ph-ink);
    font-weight: 750;
}
.ph-build-state[data-build-status="pass"] { background: #e8f6ee; color: #246043; }
.ph-build-state[data-build-status="conflict"] { background: var(--ph-accent-soft); color: var(--ph-accent-strong); }
.ph-build-state[data-build-status="unknown"] { background: #fff3d6; color: #714600; }
.ph-build-checks { display: grid; gap: 12px; margin: 14px 0; }
.ph-build-checks > div { border-left: 3px solid var(--ph-border); padding-left: 9px; }
.ph-build-checks [data-check-status="pass"] { border-color: #246043; }
.ph-build-checks [data-check-status="conflict"] { border-color: var(--ph-accent); }
.ph-build-checks [data-check-status="unknown"] { border-color: #936100; }
.ph-build-checks dd { margin: 2px 0 0; color: var(--ph-muted); font-size: .93rem; }
.ph-build-total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; border-bottom: 1px solid var(--ph-border); padding: 10px 0; }
.ph-build-total strong { color: var(--ph-accent); font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.ph-build-add { margin-top: 12px; }
.ph-build-add p { color: var(--ph-muted); margin: 7px 0 0; font-size: .9rem; }
.ph-build-sharing { margin-top: 14px; padding: 12px 0; border-bottom: 1px solid var(--ph-border); }
.ph-build-sharing-hint, .ph-build-sharing-feedback {
    margin: 8px 0 0;
    color: var(--ph-muted);
    font-size: .88rem;
}
.ph-build-sharing-feedback:empty { margin: 0; }
.ph-build-sharing-manual { margin-top: 8px; }
.ph-build-sharing-manual label { display: block; margin-bottom: 4px; font-size: .88rem; font-weight: 700; }
.ph-build-sharing-manual input { min-height: 44px; font-size: .88rem; }
.ph-build-suggestions {
    margin: 16px 0;
    padding: 12px;
    border: 1px solid var(--ph-border);
    border-radius: 12px;
    background: var(--ph-bg);
}
.ph-build-suggestions h3 { margin: 0 0 8px; font-size: 1rem; font-weight: 750; }
.ph-build-suggestions p { margin: 0; color: var(--ph-muted); font-size: .88rem; }
.ph-build-suggestions ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ph-build-suggestion {
    display: grid;
    gap: 3px;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid var(--ph-border);
    border-radius: 8px;
    background: var(--ph-white);
    color: var(--ph-accent-strong);
    overflow-wrap: anywhere;
}
.ph-build-suggestion:hover { border-color: var(--ph-accent); }
.ph-build-suggestion:hover strong, .ph-build-suggestion:focus-visible strong { text-decoration: underline; }
.ph-build-suggestion span { color: var(--ph-muted); font-size: .86rem; }
.ph-build-summary > p:last-child { margin: 6px 0 0; color: var(--ph-muted); font-size: .85rem; }

@media (max-width: 767px) {
    .ph-build-grid, .ph-build-sample { grid-template-columns: minmax(0, 1fr); }
    .ph-parts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .ph-store :is(.ph-home, .ph-workspace, .ph-nav) a { transition: none; }
}
