/* AniHoshi — public profile (/user/{pid}/profile, /bookmarks, /friends).
   Loaded after member.css, which carries the shared chips, badges, friend rows and buttons. */

.pf-shell { min-height: 62vh; padding-top: 26px; padding-bottom: 64px; }
.pf-m { width: 15px; height: 15px; font-size: 8.5px; flex: 0 0 auto; }

/* ============================================================ hero */
.pf-hero { position: relative; overflow: hidden; background: var(--hs-bg-2); border: 1px solid var(--hs-line); border-radius: 4px; }
.pf-hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 150px; -webkit-mask-image: linear-gradient(180deg, #000 35%, transparent); mask-image: linear-gradient(180deg, #000 35%, transparent); background:
    radial-gradient(120% 160% at 0% 0%, color-mix(in srgb, var(--hs-ac) 32%, transparent) 0%, transparent 55%),
    radial-gradient(90% 140% at 100% 0%, color-mix(in srgb, var(--hs-star) 16%, transparent) 0%, transparent 60%),
    repeating-linear-gradient(135deg, transparent 0 11px, color-mix(in srgb, var(--hs-tx) 4%, transparent) 11px 12px); }
.pf-hero-in { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 330px); align-items: end; gap: 18px 26px; padding: 54px 28px 24px; }
.pf-ava { position: relative; width: 124px; height: 124px; border-radius: 50%; flex: 0 0 auto; }
.pf-ava > a { position: relative; display: block; width: 100%; height: 100%; border-radius: 50%; }
.pf-ava > a > img:not(.avatar-decoration) { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--hs-bg-3); box-shadow: 0 0 0 4px var(--hs-bg-2), 0 0 0 5px var(--hs-line-2); }
.pf-ava.has-cosmetics .avatar-clip { box-shadow: 0 0 0 4px var(--hs-bg-2); }
.pf-id { min-width: 0; padding-bottom: 4px; }
.pf-name-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.pf-name { margin: 0; font: 800 30px/1.1 var(--hs-f-head); letter-spacing: -0.02em; color: var(--hs-tx); word-break: break-word; }
.pf-name-row .ak-title-eq { height: 22px; font-size: 11.5px; }
.pf-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.pf-rank, .pf-ver, .pf-role { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 4px; border: 1px solid var(--hs-line-2); background: var(--hs-bg-2); color: var(--hs-tx-2); font: 700 12px var(--hs-f-body); white-space: nowrap; }
.pf-rank { background: var(--hs-ac-soft); border-color: color-mix(in srgb, var(--hs-ac) 35%, transparent); color: var(--hs-ac-tx); }
.pf-rank img.badg-level { width: 18px; height: 18px; }
.pf-ver i { font-size: 11px; }
.pf-ver.is-yes { color: var(--hs-ok); }
.pf-ver.is-no { color: var(--hs-tx-4); }
.pf-role { color: var(--hs-tx-3); }
.pf-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font: 500 13px var(--hs-f-body); color: var(--hs-tx-4); }
.pf-meta span { display: inline-flex; align-items: center; gap: 7px; }
.pf-meta i { font-size: 11.5px; color: var(--hs-tx-4); }

.pf-power { min-width: 0; padding: 14px 16px; border-radius: 4px; border: 1px solid var(--hs-line); background: color-mix(in srgb, var(--hs-bg) 55%, var(--hs-bg-2)); }
.pf-mana { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pf-mana-k { display: inline-flex; align-items: center; gap: 7px; font: 700 11px var(--hs-f-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--hs-tx-4); }
.pf-mana strong { font: 800 26px/1 var(--hs-f-head); color: var(--hs-tx); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.pf-bar-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.pf-bar { flex: 1; height: 6px; border-radius: 2px; background: var(--hs-raise); overflow: hidden; }
.pf-bar span { display: block; height: 100%; min-width: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--hs-ac), color-mix(in srgb, var(--hs-ac) 50%, var(--hs-star))); }
.pf-bar-row .umc-percent { font: 700 12px var(--hs-f-body); color: var(--hs-tx-2); font-variant-numeric: tabular-nums; }
.pf-next { margin-top: 6px; font: 500 12px var(--hs-f-body); color: var(--hs-tx-4); }
.pf-next b { color: var(--hs-tx-2); font-weight: 700; }
.pf-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hs-line); }
.pf-links .ak-friend-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }

/* rank track */
.pf-path { border-top: 1px solid var(--hs-line); padding: 18px 28px 16px; overflow-x: auto; scrollbar-width: thin; }
.pf-path-in { position: relative; min-width: 700px; }
.pf-nodes { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(var(--pf-n, 9), minmax(0, 1fr)); }
.pf-node { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding-bottom: 24px; text-align: center; min-width: 0; }
.pf-node-ico { width: 40px; height: 40px; margin-bottom: 5px; border-radius: 4px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--hs-line-2); background: var(--hs-bg-3); }
.pf-node-ico img { width: 26px; height: 26px; object-fit: contain; filter: grayscale(1); opacity: 0.4; }
.pf-node .umc-node-title { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 12px var(--hs-f-body); color: var(--hs-tx-4); }
.pf-node .umc-node-desc { display: inline-flex; align-items: center; gap: 4px; font: 600 11px var(--hs-f-body); color: var(--hs-tx-4); font-variant-numeric: tabular-nums; }
.pf-node::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 2px; background: var(--hs-bg-2); border: 2px solid var(--hs-line-2); }
.pf-node.is-reached .pf-node-ico { border-color: color-mix(in srgb, var(--hs-ac) 45%, var(--hs-line-2)); background: var(--hs-bg-2); }
.pf-node.is-reached .pf-node-ico img { filter: none; opacity: 1; }
.pf-node.is-reached .umc-node-title { color: var(--hs-tx); }
.pf-node.is-reached::after { background: var(--hs-ac); border-color: var(--hs-ac); }
.pf-node.is-current .pf-node-ico { border-color: var(--hs-ac); box-shadow: 0 0 0 3px var(--hs-ac-soft); }
.pf-node.is-current .umc-node-title { color: var(--hs-ac-tx); }
.pf-track { position: absolute; z-index: 0; bottom: 7px; height: 3px; left: calc(100% / var(--pf-n, 9) / 2); right: calc(100% / var(--pf-n, 9) / 2); border-radius: 2px; background: var(--hs-raise); }
.pf-fill { position: relative; height: 100%; max-width: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--hs-ac), color-mix(in srgb, var(--hs-ac) 60%, var(--hs-star))); }
.pf-marker { position: absolute; z-index: 3; right: -12px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px var(--hs-bg-2), 0 0 0 4px var(--hs-ac); background: var(--hs-bg-3); }
.pf-marker img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-path-in { padding-bottom: 6px; }
.pf-track { z-index: 2; }

/* ============================================================ columns + sections */
.pf-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; margin-top: 28px; }
.pf-main, .pf-side { min-width: 0; }
.pf-sec { margin-bottom: 30px; }
.pf-sh { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.pf-sh h2 { display: flex; align-items: center; gap: 10px; margin: 0; font: 700 19px var(--hs-f-head); letter-spacing: -0.01em; color: var(--hs-tx); }
.pf-hi { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; background: var(--hs-ac-soft); color: var(--hs-ac); font-size: 12px; }
.pf-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 3px; background: var(--hs-raise); color: var(--hs-tx-3); font: 700 11px var(--hs-f-body); font-variant-numeric: tabular-nums; }
.pf-more { display: inline-flex; align-items: center; gap: 7px; font: 600 13px var(--hs-f-body); color: var(--hs-tx-4); }
.pf-more i { font-size: 11px; }
.pf-more:hover { color: var(--hs-ac); }
.pf-muted { color: var(--hs-tx-4); }

.pf-empty { padding: 26px 18px; text-align: center; border: 1px dashed var(--hs-line-2); border-radius: 4px; background: var(--hs-bg-2); color: var(--hs-tx-4); font: 500 13px/1.5 var(--hs-f-body); }
.pf-empty i { margin-right: 6px; }
.pf-empty-lg { padding: 56px 20px; font-size: 14px; }
.pf-empty-cta .umc-inv-empty-title { margin: 0 0 4px; font: 700 15px var(--hs-f-head); color: var(--hs-tx-2); }
.pf-empty-cta .umc-inv-empty-desc { margin: 0 0 14px; font-size: 12.5px; }
.pf-empty-cta .ak-btn { height: 32px; padding: 0 14px; }

/* inventory */
.pf-inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.umc-inv-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; width: 100%; margin: 0; padding: 30px 10px 14px; border-radius: 4px; border: 1px solid var(--hs-line); background: var(--hs-bg-2); color: inherit; font: inherit; text-align: center; cursor: pointer; transition: border-color 0.15s, transform 0.15s, background 0.15s; }
.umc-inv-card:hover, .umc-inv-card:focus-visible { outline: 0; border-color: color-mix(in srgb, var(--hs-ac) 60%, var(--hs-line-2)); transform: translateY(-2px); }
.umc-inv-card.is-equipped { border-color: var(--hs-ac); background: color-mix(in srgb, var(--hs-ac) 7%, var(--hs-bg-2)); }
.umc-inv-av { position: relative; width: 70px; height: 70px; margin: 2px 0 8px; flex-shrink: 0; }
.umc-inv-av .pfp { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--hs-bg-3); }
.umc-inv-av .deco, .umc-inv-modal-av .deco { position: absolute; top: -10%; left: -10%; width: 120%; height: 120%; max-width: none; pointer-events: none; object-fit: contain; }
.umc-inv-name { display: block; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 13px var(--hs-f-body); color: var(--hs-tx); }
.umc-inv-cat { display: block; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 11.5px var(--hs-f-body); color: var(--hs-tx-4); }
.umc-inv-eq, .umc-inv-modal-eq { position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 3px; background: var(--hs-ac-fill); color: #fff; font: 800 9.5px var(--hs-f-body); letter-spacing: 0.08em; text-transform: uppercase; }

.pf-titles { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-shell .pf-titles .ak-title-eq { height: 28px; padding: 0 11px; font-size: 12.5px; gap: 7px; }
.pf-shell .pf-titles .ak-title-eq.is-equipped { box-shadow: 0 0 0 2px var(--hs-bg), 0 0 0 3px var(--hs-ac); }

/* inventory detail modal (profile-inventory.js builds it on <body>) */
.umc-inv-scrim { position: fixed; inset: 0; z-index: 1120; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(4, 8, 14, 0.72); backdrop-filter: blur(3px); cursor: pointer; }
.umc-inv-scrim[hidden] { display: none !important; }
.umc-inv-modal { position: relative; width: min(92vw, 380px); padding: 26px 22px 20px; border-radius: 4px; border: 1px solid var(--hs-line-2); background: var(--hs-bg-2); color: var(--hs-tx); text-align: center; cursor: default; box-shadow: var(--cn-shadow, 0 22px 60px rgba(0, 0, 0, 0.5)); font-family: var(--hs-f-body); }
.umc-inv-x { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border: 0; border-radius: 4px; background: var(--hs-raise); color: var(--hs-tx-2); font-size: 20px; line-height: 1; cursor: pointer; }
.umc-inv-x:hover { color: var(--hs-tx); background: var(--hs-hover); }
.umc-inv-modal-av { position: relative; width: 110px; height: 110px; margin: 10px auto 16px; }
.umc-inv-modal-av .pfp { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--hs-bg-3); }
.umc-inv-modal-av .deco[hidden] { display: none !important; }
.umc-inv-modal-eq { position: static; margin: 0 0 10px; }
.umc-inv-modal-eq[hidden] { display: none !important; }
.umc-inv-modal-name { margin: 0 0 4px; font: 800 19px var(--hs-f-head); color: var(--hs-tx); }
.umc-inv-modal-cat { margin: 0 0 12px; font: 600 12px var(--hs-f-body); color: var(--hs-ac-tx); }
.umc-inv-modal-desc { max-height: 7.5em; overflow: auto; margin: 0 0 12px; font: 500 13.5px/1.55 var(--hs-f-body); color: var(--hs-tx-3); }
.umc-inv-modal-meta { margin: 0 0 16px; font: 500 12px var(--hs-f-body); color: var(--hs-tx-4); }
.umc-inv-modal-shop { display: flex; align-items: center; justify-content: center; width: 100%; height: 36px; border-radius: 4px; background: var(--hs-ac-fill); color: #fff !important; font: 700 13px var(--hs-f-body); }
.umc-inv-modal-shop:hover { background: var(--hs-ac-fill-h); }

/* friends preview */
.mb-frows.is-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.pf-shell .mb-frow { padding: 10px 12px; }
.pf-shell .mb-fava { width: 40px; height: 40px; }

/* activities */
.pf-acts-box { background: var(--hs-bg-2); border: 1px solid var(--hs-line); border-radius: 4px; }
.pf-acts { position: relative; margin: 0; padding: 4px 16px; list-style: none; }
.pf-act { position: relative; display: flex; gap: 14px; padding: 13px 0; }
.pf-act + .pf-act { border-top: 1px solid var(--hs-line); }
.pf-act-ico { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; background: var(--hs-ac-soft); color: var(--hs-ac); font-size: 12px; }
.activity-comment .pf-act-ico { background: color-mix(in srgb, var(--hs-dub) 14%, transparent); color: var(--hs-dub-tx); }
.activity-reply .pf-act-ico { background: color-mix(in srgb, var(--hs-ok) 13%, transparent); color: var(--hs-ok); }
.pf-act-body { min-width: 0; padding-top: 1px; }
.pf-act .activity-detail { font: 500 13.5px/1.5 var(--hs-f-body); color: var(--hs-tx-3); word-break: break-word; }
.pf-act .activity-detail strong { font-weight: 700; color: var(--hs-tx); }
.pf-act .reply-parent { font-weight: 600; color: var(--hs-tx-2); }
.pf-act .highlight-text { font-weight: 600; color: var(--hs-ac); }
.pf-act .highlight-text:hover { text-decoration: underline; }
.pf-act time { display: block; margin-top: 3px; font: 600 11.5px var(--hs-f-body); color: var(--hs-tx-4); }

/* sidebar widgets */
.pf-widget { margin-bottom: 18px; background: var(--hs-bg-2); border: 1px solid var(--hs-line); border-radius: 4px; overflow: hidden; }
.pf-wh { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 14px; border-bottom: 1px solid var(--hs-line); }
.pf-wh h3 { display: flex; align-items: center; gap: 9px; margin: 0; font: 700 11.5px var(--hs-f-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--hs-tx-2); }
.pf-wh h3::before { content: ""; width: 3px; height: 13px; border-radius: 1px; background: var(--hs-ac); }
.pf-wh a { font: 600 12px var(--hs-f-body); color: var(--hs-tx-4); }
.pf-wh a:hover { color: var(--hs-ac); }
.pf-widget .pf-empty { margin: 12px; }
.pf-wi { display: flex; align-items: center; gap: 12px; padding: 10px 14px; transition: background 0.15s; }
.pf-wi + .pf-wi { border-top: 1px solid var(--hs-line); }
.pf-wi:hover { background: var(--hs-hover); }
.pf-wi-pos { flex: 0 0 46px; width: 46px; height: 64px; border-radius: 3px; overflow: hidden; background: var(--hs-bg-3); }
.pf-wi-pos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-wi-info { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.pf-wi-info .name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 600 13.5px/1.3 var(--hs-f-body); color: var(--hs-tx); }
.pf-wi:hover .name { color: var(--hs-ac); }
.pf-wi-info .meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font: 600 11.5px var(--hs-f-body); color: var(--hs-tx-4); }
.pf-wi-info .meta span { display: inline-flex; align-items: center; gap: 5px; }
.pf-wi-f { color: color-mix(in srgb, var(--fc, var(--hs-tx-3)) 80%, var(--hs-tx)); }
.pf-wbtn { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 11px; border-top: 1px solid var(--hs-line); font: 700 12.5px var(--hs-f-body); color: var(--hs-ac); transition: background 0.15s; }
.pf-wbtn i { font-size: 11px; }
.pf-wbtn:hover { background: var(--hs-ac-soft); }
.pf-community-item { display: block; padding: 11px 14px; transition: background 0.15s; }
.pf-community-item + .pf-community-item { border-top: 1px solid var(--hs-line); }
.pf-community-item:hover { background: var(--hs-hover); }
.pf-community-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 600 13.5px/1.35 var(--hs-f-body); color: var(--hs-tx); }
.pf-community-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 5px; font: 600 11.5px var(--hs-f-body); color: var(--hs-tx-4); }
.pf-community-meta i { margin-right: 4px; font-size: 10.5px; }
.ztag span { color: color-mix(in srgb, var(--zc, var(--hs-tx-3)) 78%, var(--hs-tx)); font-weight: 700; }
.zt-green { --zc: #4ADE80; } .zt-yellow { --zc: #FACC15; } .zt-orange { --zc: #FB923C; } .zt-red { --zc: #FB7185; }
.zt-blue { --zc: #60A5FA; } .zt-purple { --zc: #C084FC; } .zt-white { --zc: var(--hs-tx-3); } .zt-pink { --zc: #F472B6; }
.zt-cyan { --zc: #22D3EE; } .zt-lime { --zc: #A3E635; } .zt-sky { --zc: #38BDF8; } .zt-coral { --zc: #FDA4AF; }

/* ============================================================ sub head (bookmarks / friends) */
.pf-sub { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 22px; background: var(--hs-bg-2); border: 1px solid var(--hs-line); border-radius: 4px; position: relative; overflow: hidden; }
.pf-sub::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 160% at 0% 0%, color-mix(in srgb, var(--hs-ac) 16%, transparent), transparent 60%); pointer-events: none; }
.pf-sub > * { position: relative; }
.pf-sub-ava { flex: 0 0 auto; display: block; }
.pf-sub-av { position: relative; display: block; width: 54px; height: 54px; border-radius: 50%; }
.pf-sub-av > img:not(.avatar-decoration) { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; background: var(--hs-bg-3); }
.pf-sub-who { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pf-sub-k { font: 700 10.5px var(--hs-f-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--hs-tx-4); }
.pf-sub-name { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 9px; }
.pf-sub-name > a { font: 800 20px/1.15 var(--hs-f-head); color: var(--hs-tx); }
.pf-sub-name > a:hover { color: var(--hs-ac); }
.pf-sub-rank { display: inline-flex; align-items: center; gap: 6px; font: 600 12px var(--hs-f-body); color: var(--hs-ac-tx); }
.pf-sub-tabs { display: flex; gap: 4px; margin-left: auto; padding: 3px; border-radius: 4px; border: 1px solid var(--hs-line-2); background: var(--hs-field); }
.pf-sub-tabs a { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 3px; color: var(--hs-tx-3); font: 600 12.5px var(--hs-f-body); white-space: nowrap; transition: color 0.15s, background 0.15s; }
.pf-sub-tabs a i { font-size: 11px; }
.pf-sub-tabs a:hover { color: var(--hs-tx); background: var(--hs-hover); }
.pf-sub-tabs a.on { background: var(--hs-ac-fill); color: #fff; }

.pf-bm-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 16px; }
.pf-bm-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.pf-modes { display: inline-flex; border: 1px solid var(--hs-line-2); border-radius: 4px; overflow: hidden; background: var(--hs-field); }
.pf-modes .mode { width: 38px; height: 36px; display: flex; align-items: center; justify-content: center; color: var(--hs-tx-4); cursor: pointer; transition: color 0.15s, background 0.15s; }
.pf-modes .mode + .mode { border-left: 1px solid var(--hs-line-2); }
.pf-modes .mode:hover { color: var(--hs-tx); }
.pf-modes .mode.active { background: var(--hs-ac-soft); color: var(--hs-ac); }
.pf-sort .mb-f-btn { height: 38px; }
.hs .pf-sort-menu { min-width: 190px; padding: 5px; border-radius: 4px; background: var(--hs-bg-2); border-color: var(--hs-line-2); top: calc(100% + 6px); }
.hs .pf-sort-menu .dropdown-item { justify-content: space-between; padding: 8px 10px; border-radius: 3px; font-size: 13px; }
.hs .pf-sort-menu .dropdown-item.active { background: var(--hs-ac-soft); }
.hs .pf-sort-menu .dropdown-item.active i { color: var(--hs-ac); }

.pf-wl-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(164px, 1fr)); gap: 20px 14px; }
.pf-wl-items.mode2 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 10px; }
.pf-wl-items.mode2 .hs-card { flex-direction: row; align-items: center; gap: 14px; padding: 8px; background: var(--hs-bg-2); border: 1px solid var(--hs-line); border-radius: 4px; }
.pf-wl-items.mode2 .hs-card:hover { border-color: var(--hs-line-2); }
.pf-wl-items.mode2 .hs-card .frame { flex: 0 0 58px; width: 58px; }
.pf-wl-items.mode2 .hs-card .frame > :not(img) { display: none !important; }
.pf-wl-items.mode2 .hs-card .ttl { flex: 1; min-width: 0; margin: 0; }
.pf-wl-items.mode2 .hs-card .sub { display: none; }
.pf-wl-items.mode2.mode3 { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 14px 10px; }
.pf-wl-items.mode2.mode3 .hs-card { flex-direction: column; align-items: stretch; gap: 0; padding: 0; background: none; border: 0; }
.pf-wl-items.mode2.mode3 .hs-card .frame { flex: none; width: auto; }
.pf-wl-items.mode2.mode3 .hs-card .ttl { margin-top: 7px; font-size: 12.5px; }

/* ============================================================ responsive */
@media (max-width: 1180px) {
    .pf-hero-in { grid-template-columns: auto minmax(0, 1fr); }
    .pf-power { grid-column: 1 / -1; }
    .pf-cols { grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; }
}
@media (max-width: 960px) {
    .pf-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
    .pf-shell { padding-top: 16px; padding-bottom: 40px; }
    .pf-hero::before { height: 84px; }
    .pf-hero-in { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 14px; padding: 30px 16px 16px; text-align: center; }
    .pf-ava { width: 104px; height: 104px; }
    .pf-id { display: flex; flex-direction: column; align-items: center; }
    .pf-name-row, .pf-chips, .pf-meta { justify-content: center; }
    .pf-name { font-size: 25px; }
    .pf-power { width: 100%; text-align: left; }
    .pf-links { justify-content: center; }
    .pf-path { padding: 14px 16px; }
    .pf-path-in { min-width: 800px; }
    .pf-sh h2 { font-size: 17px; }
    .pf-inv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mb-frows.is-grid { grid-template-columns: minmax(0, 1fr); }
    .pf-sub { padding: 12px 14px; }
    .pf-sub-tabs { width: 100%; margin-left: 0; overflow-x: auto; scrollbar-width: none; }
    .pf-sub-tabs a { flex: 1 0 auto; justify-content: center; }
    .pf-bm-bar .mb-folders { width: 100%; }
    .pf-bm-tools { width: 100%; margin-left: 0; }
    .pf-sort { flex: 1; }
    .pf-sort .mb-f-btn { width: 100%; }
    .pf-sort .mb-f-btn svg { margin-left: auto; }
    .pf-wl-items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
    .pf-wl-items.mode2 { grid-template-columns: minmax(0, 1fr); }
    .pf-wl-items.mode2.mode3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
