.pr-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-top: 24px; padding-bottom: 22px; }
.pr-head h1 { font-size: 38px; }
.pr-head .mono { font-size: 12.5px; margin-top: 8px; }
.pr-head-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.pr-head-tools .btn { white-space: nowrap; }
.pr-sortform { display: flex; gap: 8px; }
.pr-sortform select { height: 40px; font-size: 13px; width: auto; min-width: 130px; }
.pr-sortform select:last-child { min-width: 84px; }

.pr-layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 40px; align-items: start; padding-top: 30px; padding-bottom: 70px; }
.pr-layout-wide { grid-template-columns: minmax(0, 1fr); }
.pr-rail { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 92px; }
.pr-rail-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pr-rail-head-r { display: flex; align-items: center; gap: 12px; }
.pr-rail-close { display: none; color: var(--text-mute); padding: 4px; }
.pr-rail-close:hover { color: var(--text); }
.pr-rail-done { display: none; }
.pr-rail-veil { display: none; }
.pr-filter-btn { display: none; }
.pr-filter-n { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: var(--r-pill); background: var(--amber); color: var(--on-amber); font-size: 10.5px; font-weight: 600; }
.pr-clear { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); }
.pr-facet { display: flex; flex-direction: column; gap: 8px; }
.pr-facet-t { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); font-weight: 500; }
.pr-facet-list { display: flex; flex-direction: column; max-height: 300px; overflow-y: auto; padding-right: 1rem; }
.pr-facet-head { display: flex; align-items: center; gap: 10px; }
.pr-facet-head .pr-facet-t { flex: 1 1 auto; }
.pr-facet-head .pr-facet-search { flex: 0 0 88px; width: 88px; min-width: 0; height: 28px; padding: 0 8px; font-size: 12px; }
.pr-facet-none { color: var(--text-mute); font-size: 12.5px; }
.pr-facet-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 13.5px; color: var(--text-dim); border-bottom: 1px solid var(--line-soft); }
.pr-facet-link:hover { color: var(--amber); }
.pr-facet-link.is-on { color: var(--amber); }
.pr-price-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.pr-price-row input { height: 40px; padding: 0 10px; font-size: 13px; }

.pr-main { min-width: 0; }
.pr-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.pr-chip { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--amber-line); background: var(--amber-soft); color: var(--amber); font-size: 12.5px; }
.pr-chip:hover { border-color: var(--amber); color: var(--amber); }

@media (max-width: 860px) {
    .pr-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 20px; }
    .pr-facet-list { max-height: none; }
    .pr-head { flex-direction: column; align-items: flex-start; gap: 14px; }
    .pr-head h1 { font-size: 28px; }
    .pr-filter-btn { display: inline-flex; }
    .pr-head-tools { width: 100%; gap: 8px; }
    .pr-sortform { flex: 1 1 100%; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
    .pr-sortform select { min-width: 0; width: 100%; }
    .pr-sortform select:last-child { width: auto; min-width: 76px; }

    .pr-rail-veil { display: block; position: fixed; inset: 0; background: var(--backdrop); z-index: 96; }
    .pr-rail-veil[hidden] { display: none; }

    .pr-rail {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(340px, 88vw);
        background: var(--panel);
        border-right: 1px solid var(--line);
        box-shadow: var(--shadow);
        padding: 20px;
        gap: 22px;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform .22s var(--ease);
        z-index: 97;
    }
    .pr-rail.is-open { transform: none; }
    .pr-rail-head { position: sticky; top: -20px; background: var(--panel); padding: 4px 0 10px; margin: -4px 0 0; border-bottom: 1px solid var(--line-soft); }
    .pr-rail-close { display: inline-flex; }
    .pr-rail-done { display: inline-flex; margin-top: 4px; }
}
