/* Patent search page (/patents). Laravel: @push('styles') on the search page. */
[data-ps-grid][hidden], [data-ps-tablewrap][hidden], [data-ps-empty][hidden], [data-ps-chips][hidden], [data-ps-tray][hidden], .ps-adv[hidden] { display: none !important; }

/* ---------- Head + search ---------- */
.ps-head { padding: 22px 0 26px; background: #f5f5f5; border-bottom: 1px solid #e8e8e8; }
.ps-crumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: var(--pm-muted); }
.ps-crumb a:hover { color: var(--pm-footer); text-decoration: underline; }
.ps-crumb__here:not(:empty)::before { content: "/"; margin-right: 6px; }
.ps-crumb__here { color: var(--pm-ink); font-weight: 600; }
.ps-head__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 12px 0 18px; }
.ps-title { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; letter-spacing: -.6px; color: var(--pm-ink); }
.ps-lead { max-width: 720px; margin-top: 6px; font-size: 15px; color: var(--pm-text); }
.ps-stats { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; flex-shrink: 0; }
.ps-stats li { padding: 8px 14px; border: 1px solid #e3e6ec; border-radius: 8px; background: #fff; font-size: 12.5px; color: var(--pm-muted); text-align: center; line-height: 1.3; }
.ps-stats strong { display: block; font-size: 18px; color: var(--pm-footer); }

.ps-search__bar { display: flex; height: 54px; border: 1px solid #d4dbe7; border-radius: 10px; background: #fff; box-shadow: 0 4px 16px rgba(20, 26, 58, .06); overflow: hidden; }
.ps-search__bar:focus-within { border-color: var(--pm-footer); box-shadow: 0 0 0 3px rgba(23, 75, 150, .12); }
.ps-search__field { flex: 0 0 auto; padding: 0 34px 0 16px; border: 0; border-right: 1px solid #e3e6ec; background: #f8f9fc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2 4 4 4 4-4' fill='none' stroke='%236b7591' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center / 11px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--pm-ink); appearance: none; cursor: pointer; }
.ps-search__input { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 14px; min-width: 0; }
.ps-search__input svg { flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: var(--pm-muted); stroke-width: 2; stroke-linecap: round; }
.ps-search__input input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; font: inherit; font-size: 15px; color: var(--pm-ink); background: transparent; }
.ps-search__go { height: auto; border-radius: 0; padding: 0 28px; font-size: 14.5px; }
.ps-search__links { display: flex; align-items: center; gap: 16px; margin-top: 10px; }
.ps-search__hint { font-size: 12.5px; color: var(--pm-muted); }

.ps-textbtn { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--pm-footer); cursor: pointer; }
.ps-textbtn:hover { color: #123d80; text-decoration: underline; text-underline-offset: 3px; }
.ps-textbtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.ps-adv { margin-top: 12px; padding: 18px 20px; border: 1px solid #e3e6ec; border-radius: 10px; background: #fff; }
.ps-adv__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 18px; }
.ps-adv label { display: grid; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--pm-ink); }
.ps-adv label small { font-weight: 400; color: var(--pm-muted); }
.ps-adv input, .ps-adv textarea { width: 100%; padding: 9px 11px; border: 1px solid #d4dbe7; border-radius: 6px; font: inherit; font-size: 13.5px; font-weight: 400; color: var(--pm-ink); resize: vertical; }
.ps-adv input:focus, .ps-adv textarea:focus { outline: 0; border-color: var(--pm-footer); box-shadow: 0 0 0 3px rgba(23, 75, 150, .1); }
.ps-adv__nums { grid-column: span 3; }
.ps-adv__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #edf0f5; font-size: 12.5px; color: var(--pm-muted); }
.ps-adv__foot > div { display: flex; gap: 10px; }
.ps-adv__foot .pm-btn { height: 38px; padding: 0 16px; font-size: 13px; }

/* ---------- Pinned quick-search bar (slides in under the header once the big search scrolls away) ---------- */
.ps-pinbar { position: fixed; left: 0; right: 0; top: var(--ps-top, 66px); z-index: 900; background: #fff; border-bottom: 1px solid #e3e6ec; box-shadow: 0 8px 18px rgba(20, 26, 58, .08); transform: translateY(-110%); opacity: 0; visibility: hidden; transition: transform .2s ease, opacity .2s ease, visibility .2s; }
.ps-pinbar.is-pinned { transform: none; opacity: 1; visibility: visible; }
.ps-pinbar__inner { display: flex; align-items: center; gap: 12px; padding-block: 10px; }
.ps-qbar { flex: 1; display: flex; align-items: center; gap: 8px; height: 42px; padding-left: 12px; border: 1px solid #d4dbe7; border-radius: 8px; background: #fff; overflow: hidden; }
.ps-qbar:focus-within { border-color: var(--pm-footer); box-shadow: 0 0 0 3px rgba(23, 75, 150, .1); }
.ps-qbar svg { flex: 0 0 16px; width: 16px; height: 16px; fill: none; stroke: var(--pm-muted); stroke-width: 2; stroke-linecap: round; }
.ps-qbar input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; font: inherit; font-size: 14px; background: transparent; }
.ps-qbar select { flex: 0 0 auto; height: 100%; max-width: 190px; padding: 0 30px 0 12px; border: 0; border-left: 1px solid #e3e6ec; background: #f8f9fc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2 4 4 4 4-4' fill='none' stroke='%236b7591' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 10px center / 10px; font: inherit; font-size: 13px; font-weight: 600; color: var(--pm-ink); appearance: none; cursor: pointer; }
.ps-qbar button { height: 100%; padding: 0 18px; border: 0; background: var(--pm-footer); font: inherit; font-size: 13.5px; font-weight: 700; color: #fff; cursor: pointer; }
.ps-qbar button:hover { background: #123d80; }
.ps-filters-open { display: none; }

/* ---------- Layout: results left, filters right ---------- */
.ps-body { padding: 26px 0 56px; }
.ps-layout { --ps-card: calc((min(var(--pm-container), 100vw - var(--pm-gutter) * 2) - 2 * var(--pm-s7)) / 3); display: grid; grid-template-columns: minmax(0, calc(var(--ps-card) * 2 + var(--pm-s7))) minmax(250px, 330px); justify-content: space-between; gap: 28px; align-items: start; }
.ps-filters { position: sticky; top: calc(var(--ps-top, 66px) + 74px); max-height: calc(100vh - var(--ps-top, 66px) - 90px); overflow-y: auto; padding: 4px 2px 4px 4px; scrollbar-width: thin; }
.ps-filters__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #e3e6ec; }
.ps-filters__head strong { flex: 1; font-size: 16px; color: var(--pm-ink); }
.ps-filters__close, .ps-filters__done { display: none; }
.ps-toggles { display: grid; gap: 10px; padding: 14px 0; border-bottom: 1px solid #e3e6ec; }
.ps-fgroup { padding: 14px 0; border-bottom: 1px solid #e3e6ec; }
.ps-fgroup > summary { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 14px; font-weight: 700; color: var(--pm-ink); cursor: pointer; list-style: none; }
.ps-fgroup > summary::-webkit-details-marker { display: none; }
.ps-fgroup > summary svg { width: 16px; height: 16px; fill: none; stroke: var(--pm-muted); stroke-width: 2; transition: transform .15s; }
.ps-fgroup[open] > summary svg { transform: rotate(180deg); }
.ps-pill-n { margin-left: auto; }
.ps-pill-n:not(:empty) { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--pm-footer); font-size: 11px; color: #fff; }
.ps-soon-tag { padding: 1px 7px; border-radius: 999px; background: #fff3d6; font-size: 10px; color: #8a5a00; letter-spacing: .3px; text-transform: uppercase; }
.ps-fpanel { margin-top: 8px; }
.ps-fpanel__note { margin-bottom: 6px; font-size: 12px; color: var(--pm-muted); }
.ps-soon-grid { display: grid; gap: 10px; }
.ps-soon-grid strong { font-size: 12.5px; color: var(--pm-ink); }
.ps-soon-grid .ps-opts li label { padding: 3px 0; font-size: 12.5px; opacity: .6; cursor: not-allowed; }
.ps-fsearch { width: 100%; margin-bottom: 6px; padding: 7px 10px; border: 1px solid #d4dbe7; border-radius: 6px; font: inherit; font-size: 13px; }
.ps-opts { margin: 0; padding: 0; list-style: none; }
.ps-opts li label { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: 13.5px; color: var(--pm-text); cursor: pointer; }
.ps-opts input { flex: 0 0 auto; width: 16px; height: 16px; margin: 0; accent-color: var(--pm-footer); }
.ps-opt__name { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0; }
.ps-opt__name .pm-flag { width: 18px; height: 13px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.ps-count { flex: 0 0 auto; min-width: 26px; padding: 1px 7px; border-radius: 999px; background: #eef1f6; font-size: 11.5px; font-weight: 700; color: var(--pm-muted); text-align: center; }
.ps-opts li label:hover .ps-opt__name { color: var(--pm-footer); }
.ps-opts input:checked ~ .ps-opt__name { font-weight: 700; color: var(--pm-ink); }
.ps-opts input:checked ~ .ps-count { background: var(--pm-footer); color: #fff; }
.ps-opts li.is-zero label { opacity: .45; }

.ps-switch { position: relative; display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--pm-ink); cursor: pointer; }
.ps-switch input { position: absolute; opacity: 0; }
.ps-switch span { position: relative; flex: 0 0 32px; height: 18px; border-radius: 999px; background: #cfd6e2; transition: background-color .15s; }
.ps-switch span::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .15s; }
.ps-switch input:checked + span { background: var(--pm-footer); }
.ps-switch input:checked + span::after { transform: translateX(14px); }
.ps-switch input:focus-visible + span { outline: 2px solid var(--pm-footer); outline-offset: 2px; }

/* ---------- Toolbar ---------- */
.ps-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid #e3e6ec; }
.ps-count-line { font-size: 15px; font-weight: 700; color: var(--pm-ink); }
.ps-toolbar__tools { display: flex; align-items: center; gap: 12px; }
.ps-mini { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--pm-muted); }
.ps-mini select { height: 36px; padding: 0 30px 0 10px; border: 1px solid #d4dbe7; border-radius: 6px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2 4 4 4 4-4' fill='none' stroke='%236b7591' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 10px center / 10px; font: inherit; font-size: 13px; font-weight: 600; color: var(--pm-ink); appearance: none; cursor: pointer; }
.ps-views { display: flex; border: 1px solid #d4dbe7; border-radius: 6px; overflow: hidden; }
.ps-views button { display: flex; align-items: center; gap: 5px; height: 34px; padding: 0 10px; border: 0; border-left: 1px solid #d4dbe7; background: #fff; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--pm-muted); cursor: pointer; }
.ps-views button:first-child { border-left: 0; }
.ps-views svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.ps-views button[aria-pressed="true"] { background: var(--pm-footer); color: #fff; }

.ps-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 12px; }
.ps-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 8px 5px 12px; border: 1px solid #c9daf0; border-radius: 999px; background: #eaf2fb; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--pm-footer); cursor: pointer; }
.ps-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-chip b { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #fff; font-size: 13px; line-height: 1; }
.ps-chip:hover { border-color: var(--pm-footer); }

.ps-actions { display: flex; flex-wrap: wrap; gap: 20px; padding: 12px 0 16px; }

/* ---------- Results: grid / list ---------- */
.ps-grid { display: grid; gap: var(--pm-s7); }
.ps-grid--grid { grid-template-columns: repeat(2, minmax(0, calc((min(var(--pm-container), 100vw - var(--pm-gutter) * 2) - 2 * var(--pm-s7)) / 3))); justify-content: start; }
.ps-grid--list { grid-template-columns: 1fr; gap: 14px; }
.ps-grid .pm-pcard[hidden] { display: none; }
.ps-grid--list .pm-pcard { flex-direction: row; }
.ps-grid--list .pm-pcard__media { flex: 0 0 260px; border-bottom: 0; border-right: 1px solid #d9e0ee; display: flex; align-items: center; }
.ps-grid--list .pm-pcard__frame { width: 100%; }
.ps-grid--list .pm-pcard__summary { -webkit-line-clamp: 2; min-height: 0; }
.ps-grid--list .pm-pcard__title { min-height: 0; }
.ps-grid--list .pm-pcard__meta { margin: 12px 0; }
.ps-grid--list .pm-pcard__save { right: auto; left: 222px; }

.pm-pcard__cmp { position: absolute; left: 18px; bottom: auto; top: 56px; z-index: 1; display: none; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px; background: rgba(255, 255, 255, .95); box-shadow: var(--pm-shadow-sm); font-size: 12px; font-weight: 700; color: var(--pm-ink); cursor: pointer; }
.ps-grid .pm-pcard__cmp { display: inline-flex; }
.pm-pcard__cmp input { width: 14px; height: 14px; margin: 0; accent-color: var(--pm-footer); }
.pm-pcard__cmp.is-on { background: var(--pm-footer); color: #fff; }
.pm-pcard:not(:has(.pm-pcard__new)) .pm-pcard__cmp { top: 18px; }
.ps-grid--list .pm-pcard__cmp { top: auto; bottom: 18px; }

/* ---------- Results: table ---------- */
.ps-tablewrap { overflow-x: auto; border: 1px solid #e3e6ec; border-radius: 10px; }
.ps-table { width: 100%; min-width: 900px; border-collapse: collapse; font-size: 13px; }
.ps-table th { position: sticky; top: 0; padding: 10px 12px; background: #f5f7fb; border-bottom: 1px solid #e3e6ec; text-align: left; font-size: 12px; font-weight: 700; color: var(--pm-muted); white-space: nowrap; }
.ps-table th button { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.ps-table th button::after { content: " ↕"; opacity: .5; }
.ps-table th button.is-sorted { color: var(--pm-footer); }
.ps-table td { padding: 10px 12px; border-bottom: 1px solid #edf0f5; color: var(--pm-text); vertical-align: top; }
.ps-table tr:last-child td { border-bottom: 0; }
.ps-table tbody tr:hover { background: #f8faff; }
.ps-table tr[hidden] { display: none; }
.ps-table input { accent-color: var(--pm-footer); }
.ps-table__title { min-width: 240px; }
.ps-table__title a { font-weight: 700; color: var(--pm-ink); }
.ps-table__title a:hover { color: var(--pm-footer); text-decoration: underline; }
.ps-nowrap { white-space: nowrap; }
.ps-nowrap .pm-flag { width: 18px; height: 13px; margin-right: 6px; vertical-align: -2px; border-radius: 2px; }
.ps-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; white-space: nowrap; }
.ps-new { padding: 1px 7px; border-radius: 999px; background: #f2a516; font-size: 10px; font-weight: 800; color: #1d1600; text-transform: uppercase; }
.ps-st { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.ps-st--granted { background: #d8f2e2; color: #1d7a45; }
.ps-st--pending { background: #fff3d6; color: #8a5a00; }
.ps-st--application { background: #e3e8ff; color: #3341a3; }

/* ---------- Empty, pager, scouting ---------- */
.ps-empty { padding: 48px 24px; border: 1px dashed #cfd6e2; border-radius: 12px; text-align: center; }
.ps-empty svg { width: 44px; height: 44px; fill: none; stroke: var(--pm-footer); stroke-width: 1.6; stroke-linecap: round; }
.ps-empty h2 { margin-top: 10px; font-size: 20px; }
.ps-empty p { max-width: 520px; margin: 8px auto 18px; color: var(--pm-muted); }
.ps-empty div { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.ps-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 28px; }
.ps-pager:empty { display: none; }
.ps-pager button { min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid #d4dbe7; border-radius: 6px; background: #fff; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--pm-ink); cursor: pointer; }
.ps-pager button:hover:not(:disabled) { border-color: var(--pm-footer); color: var(--pm-footer); }
.ps-pager button[aria-current="page"] { background: var(--pm-footer); border-color: var(--pm-footer); color: #fff; }
.ps-pager button:disabled { opacity: .4; cursor: default; }
.ps-pager span { padding: 0 4px; color: var(--pm-muted); }

.ps-scout { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 36px; padding: 20px 24px; border: 1px solid #c9daf0; border-left: 4px solid var(--pm-footer); border-radius: 10px; background: #f3f8fe; }
.ps-scout strong { font-size: 16px; color: var(--pm-ink); }
.ps-scout p { max-width: 560px; margin-top: 4px; font-size: 13.5px; color: var(--pm-text); }
.ps-scout__btns { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }
.ps-scout .pm-btn, .ps-empty .pm-btn { height: 40px; padding: 0 16px; font-size: 13.5px; }

/* ---------- Compare tray + dialog ---------- */
.ps-tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; background: #fff; border-top: 1px solid #d4dbe7; box-shadow: 0 -8px 24px rgba(20, 26, 58, .1); }
.ps-tray__inner { display: flex; align-items: center; gap: 16px; padding-block: 12px; }
.ps-tray__inner > strong { flex-shrink: 0; font-size: 13.5px; color: var(--pm-ink); }
.ps-tray__list { flex: 1; display: flex; gap: 8px; min-width: 0; margin: 0; padding: 0; list-style: none; overflow-x: auto; }
.ps-tray__list li { display: flex; align-items: center; gap: 6px; max-width: 240px; padding: 6px 6px 6px 12px; border: 1px solid #e3e6ec; border-radius: 6px; background: #f5f7fb; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-tray__list button { flex-shrink: 0; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: #fff; cursor: pointer; }
.ps-tray__btns { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.ps-tray__btns .pm-btn { height: 40px; }
.ps-tray__btns .pm-btn:disabled { opacity: .5; cursor: not-allowed; }
body.ps-has-tray .pm-footer { padding-bottom: 66px; }

.ps-dialog { width: min(1100px, 94vw); max-height: 88vh; padding: 0; border: 0; border-radius: 12px; box-shadow: 0 24px 60px rgba(20, 26, 58, .3); }
.ps-dialog::backdrop { background: rgba(20, 26, 58, .45); }
.ps-dialog__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid #e3e6ec; }
.ps-dialog__head h2 { font-size: 19px; }
.ps-dialog__close { width: 34px; height: 34px; border: 1px solid #e3e6ec; border-radius: 50%; background: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.ps-dialog__body { max-height: calc(88vh - 140px); overflow: auto; padding: 0 22px; }
.ps-cmp-scroll { overflow-x: auto; }
.ps-cmp { width: 100%; border-collapse: collapse; font-size: 13px; }
.ps-cmp th { width: 130px; padding: 12px 12px 12px 0; text-align: left; font-size: 12px; color: var(--pm-muted); vertical-align: top; }
.ps-cmp td { min-width: 200px; padding: 12px; border-left: 1px solid #edf0f5; vertical-align: top; color: var(--pm-text); }
.ps-cmp tr + tr > * { border-top: 1px solid #edf0f5; }
.ps-cmp img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; border: 1px solid #e3e6ec; }
.ps-cmp a strong { color: var(--pm-ink); }
.ps-cmp a:hover strong { color: var(--pm-footer); }
.ps-cmp__sum { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.ps-dialog__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 22px; border-top: 1px solid #e3e6ec; background: #f8f9fc; font-size: 13px; color: var(--pm-muted); }
.ps-dialog__foot .pm-btn { height: 40px; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) { .ps-grid--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1024px) {
    .ps-layout { grid-template-columns: minmax(0, 1fr); }
    .ps-filters-open { display: inline-flex; flex-shrink: 0; height: 40px; padding: 0 14px; font-size: 13px; }
    .ps-filters-open svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
    .ps-filters { position: fixed; inset: 0 auto 0 0; top: 0; z-index: 1100; width: min(340px, 88vw); max-height: none; padding: 16px 18px 24px; background: #fff; box-shadow: 8px 0 30px rgba(20, 26, 58, .2); transform: translateX(-105%); transition: transform .2s; }
    .ps-filters.is-open { transform: none; }
    .ps-filters__close { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #e3e6ec; border-radius: 50%; background: #fff; font-size: 18px; cursor: pointer; }
    .ps-filters__done { display: flex; position: sticky; bottom: 0; width: 100%; margin-top: 16px; }
    body.ps-lock { overflow: hidden; }
    body.ps-lock::after { content: ""; position: fixed; inset: 0; z-index: 1050; background: rgba(20, 26, 58, .4); }
    .ps-adv__grid { grid-template-columns: 1fr 1fr; }
    .ps-adv__nums { grid-column: span 2; }
}
@media (max-width: 760px) {
    .ps-search__bar { flex-wrap: wrap; height: auto; }
    .ps-search__field, .ps-search__cty { flex: 1 1 50%; height: 42px; border-bottom: 1px solid #e3e6ec; }
    .ps-search__input { height: 48px; }
    .ps-search__go { padding: 0 18px; }
    .ps-search__hint { display: none; }
    .ps-qbar select, .ps-qbar button { display: none; }
    .ps-grid--list .pm-pcard { flex-direction: column; }
    .ps-grid--list .pm-pcard__media { flex: none; border-right: 0; border-bottom: 1px solid #d9e0ee; }
    .ps-grid--list .pm-pcard__save { left: auto; right: 18px; }
    .ps-grid--list .pm-pcard__cmp { top: 56px; bottom: auto; }
    .ps-toolbar__tools { flex-wrap: wrap; width: 100%; }
    .ps-views span { display: none; }
    .ps-count-line { order: 3; width: 100%; font-size: 14px; }
    .ps-adv__grid { grid-template-columns: 1fr; }
    .ps-adv__nums { grid-column: auto; }
    .ps-adv__foot { flex-direction: column; align-items: stretch; }
    .ps-scout { flex-direction: column; align-items: flex-start; }
    .ps-tray__inner { flex-wrap: wrap; }
    .ps-tray__list { order: 3; flex-basis: 100%; }
    .ps-dialog__foot { flex-direction: column; align-items: stretch; }
}
@media (max-width: 600px) { .ps-grid--grid { grid-template-columns: 1fr; } }

/* ---------- Search head: country picker + highlighted advanced search ---------- */
.ps-head .ps-title { margin: 4px 0 18px; }
.ps-search__cty { flex: 0 0 auto; max-width: 220px; padding: 0 34px 0 16px; border: 0; border-right: 1px solid #e3e6ec; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2 4 4 4 4-4' fill='none' stroke='%236b7591' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center / 11px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--pm-ink); appearance: none; cursor: pointer; }
.ps-advbtn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border: 1px solid var(--pm-footer); border-radius: 999px; background: #eaf2fb; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--pm-footer); cursor: pointer; transition: background-color .15s, color .15s; }
.ps-advbtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.ps-advbtn:hover, .ps-advbtn[aria-expanded="true"] { background: var(--pm-footer); color: #fff; }
.ps-search__hint { font-weight: 500; color: var(--pm-text); }
.ps-grid--grid .pm-pcard__meta dt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
