/* The private collector's space. Shared palette and Card Stage; no frontend build. */
.pv-mine-page { padding-bottom: 64px; }
.pv-mine-page [hidden] { display: none !important; }
.pm-eyebrow { margin: 0; color: var(--gilt); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.pm-source { color: var(--fg-muted); font-size: 12px; line-height: 1.65; margin: 16px 0; }
.pm-source a, .pm-text-link { color: var(--gilt); }
.pm-text-link { font-size: 12.5px; font-weight: 600; }
.pm-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pm-section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 46px 0 20px; }
.pm-section-head h2 { font: 600 23px/1.3 var(--display); letter-spacing: -.03em; margin: 0; color: var(--parchment); }
.pm-section-head p { color: var(--fg-dim); margin: 6px 0 0; font-size: 13px; }
.pm-home-hero { display: grid; grid-template-columns: 1.12fr 1fr; align-items: center; gap: 26px; padding: 14px 0 34px; border-bottom: 1px solid var(--hairline); }
.pm-home-intro h2 { font: 600 clamp(30px, 3.6vw, 45px)/1.13 var(--display); letter-spacing: -.045em; margin: 22px 0 18px; color: var(--parchment); }
.pm-intro { color: var(--fg-dim); font-size: 15px; line-height: 1.8; max-width: 42ch; }
.pm-home-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 40px; }
.pm-home-stats > div { display: grid; gap: 5px; }
.pm-home-stats strong { font: 600 23px var(--display); color: var(--parchment); font-variant-numeric: tabular-nums; }
.pm-home-stats span { font-size: 11px; color: var(--fg-muted); }
.pm-home-feature { display: grid; grid-template-columns: 1fr; justify-items: center; min-width: 0; position: relative; padding: 0 15px 12px; }
.pm-stage { display: grid; place-items: center; width: 100%; }
.pm-stage .card-stage { --cw: 188px; }
.pm-feature-caption { text-align: center; max-width: 36ch; margin-top: -8px; position: relative; }
.pm-feature-caption h3 { font: 600 18px var(--display); margin: 7px 0; color: var(--parchment); }
.pm-feature-caption > p:not(.pm-eyebrow) { color: var(--fg-muted); font-size: 12px; margin: 0; }
.pm-feature-caption blockquote { font-size: 13px; color: var(--fg-dim); line-height: 1.6; margin: 14px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.pm-hint { max-width: 32ch; line-height: 1.6; margin-top: 10px !important; }
.pm-brief { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--panel-grad), var(--bg-panel); }
.pm-brief > a { display: flex; flex-direction: column; padding: 24px; gap: 10px; text-decoration: none; border-right: 1px solid var(--hairline); }
.pm-brief > a:last-child { border-right: 0; }
.pm-brief > a:hover { background: var(--bg-hover); }
.pm-brief-lead strong { font: 600 35px var(--display); letter-spacing: -.04em; }
.pm-brief-lead > span:not(.pm-eyebrow), .pm-brief-item p { color: var(--fg-dim); font-size: 13px; line-height: 1.7; margin: 0; }
.pm-brief-lead small { font-size: 11px; line-height: 1.6; color: var(--fg-muted); margin-top: auto; }
.pm-brief-item h3 { font: 600 19px/1.4 var(--display); margin: 3px 0; color: var(--parchment); }
.pm-brief-item .pm-text-link { margin-top: auto; }
.pm-onboard { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin: 36px 0; }
.pm-onboard span { font: 500 12px var(--display); color: var(--gilt); }
.pm-onboard h3 { font: 600 17px var(--display); margin: 12px 0; }
.pm-onboard p { font-size: 13px; line-height: 1.7; color: var(--fg-dim); }
.pm-first-card { padding: 30px; text-align: center; background: var(--bg-panel); border: 1px solid var(--gilt-line); border-radius: 22px; }
.pm-empty-card { display: grid; place-items: center; width: 90px; height: 126px; border: 1px solid var(--gilt-soft); border-radius: 9px; margin: 0 auto 24px; color: var(--gilt); font: 400 36px var(--display); transform: rotate(-7deg); }
.pm-first-card h3 { font: 600 20px var(--display); }
.pm-first-card > p:not(.pm-eyebrow) { font-size: 13px; color: var(--fg-dim); line-height: 1.75; }

.pm-binder-invite { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 30px; border: 1px dashed var(--gilt-soft); border-radius: 16px; background: var(--bg-panel); }
.pm-binder-invite h3 { color: var(--parchment); font: 600 21px var(--display); margin: 9px 0; }
.pm-binder-invite p:not(.pm-eyebrow) { font-size: 13px; color: var(--fg-dim); max-width: 60ch; line-height: 1.75; margin: 0; }
[data-theme="gilt"] { --binder-accent: #c8aa6e; --binder-tint: #3b3222; }
[data-theme="blue"] { --binder-accent: #8db5e8; --binder-tint: #1f3046; }
[data-theme="violet"] { --binder-accent: #b4a0de; --binder-tint: #352d48; }
[data-theme="forest"] { --binder-accent: #8dbba4; --binder-tint: #203d30; }
.pm-binder-shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.pm-binder { display: block; min-width: 0; text-decoration: none; color: var(--parchment); }
.pm-binder:hover { text-decoration: none; }
.pm-binder-cover { position: relative; height: 215px; display: flex; justify-content: center; align-items: center; overflow: hidden; border: 1px solid color-mix(in srgb, var(--binder-accent) 35%, transparent); border-left: 12px solid var(--binder-tint); border-radius: 5px 15px 15px 5px; background: linear-gradient(130deg, var(--binder-tint), var(--bg-panel) 90%); transition: transform .25s; }
.pm-binder:hover .pm-binder-cover { transform: translateY(-4px); }
.pm-binder-cover::after { content: ""; position: absolute; inset: 12px; border: 1px solid color-mix(in srgb, var(--binder-accent) 20%, transparent); border-radius: 5px; pointer-events: none; }
.pm-cover-art { height: 150px; width: auto; max-width: 42%; object-fit: contain; border-radius: 6px; position: absolute; }
.pm-cover-art:first-child { transform: translateX(-50px) rotate(-12deg); }
.pm-cover-art:nth-child(2) { transform: translateX(50px) rotate(12deg); }
.pm-cover-art:nth-child(3) { transform: translateY(4px); }
.pm-cover-art:only-child { transform: rotate(-5deg); }
.pm-binder-monogram { color: var(--binder-accent); font: 400 56px var(--display); border: 1px solid var(--binder-accent); padding: 4px 18px; border-radius: 8px; transform: rotate(-7deg); opacity: .7; }
.pm-binder-caption { padding: 16px 4px; }
.pm-binder-caption h3 { font: 600 16px var(--display); margin: 0 0 7px; overflow-wrap: anywhere; }
.pm-binder-caption p { color: var(--fg-muted); font-size: 12px; margin: 0 0 12px; }
.pm-binder progress, .pm-binder-stats progress { appearance: none; display: block; width: 100%; height: 4px; border: 0; border-radius: 4px; background: var(--bg-elevated); accent-color: var(--binder-accent); }
.pm-binder progress::-webkit-progress-bar, .pm-binder-stats progress::-webkit-progress-bar { background: var(--bg-elevated); border-radius: 4px; }
.pm-binder progress::-webkit-progress-value, .pm-binder-stats progress::-webkit-progress-value { background: var(--binder-accent); border-radius: 4px; }
.pm-binder-title { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: 26px 0; }
.pm-binder-title h2 { font: 600 clamp(26px, 4vw, 38px)/1.2 var(--display); letter-spacing: -.04em; margin: 12px 0; overflow-wrap: anywhere; }
.pm-binder-title p:not(.pm-eyebrow) { color: var(--fg-dim); font-size: 14px; line-height: 1.7; max-width: 64ch; white-space: pre-line; overflow-wrap: anywhere; }
.pm-binder-stats { display: flex; align-items: center; gap: 32px; padding: 22px 26px; background: var(--bg-panel); border: 1px solid var(--border); border-radius: 14px; }
.pm-binder-stats > div { flex-shrink: 0; max-width: 40%; }
.pm-binder-stats strong { display: block; font: 600 25px var(--display); color: var(--parchment); }
.pm-binder-stats small { color: var(--fg-muted); font-size: 17px; }
.pm-binder-stats span { display: block; color: var(--fg-muted); font-size: 11.5px; line-height: 1.7; margin-top: 5px; }
.pm-binder-stats progress { flex: 1; min-width: 30px; }
.pm-binder-tools, .pm-collection-tools { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; margin: 26px 0 18px; }
.pm-collection-tools { margin: 0 0 24px; }
.pm-chips { display: flex; gap: 6px; flex-wrap: wrap; align-self: center; }
.pm-filter { display: grid; gap: 7px; color: var(--fg-muted); font-size: 11px; margin-right: auto; }
.pm-filter input { width: min(280px, 100%); min-width: 200px; height: 38px; border: 1px solid var(--border); border-radius: 9px; padding: 0 12px; background: var(--bg-sunken); color: var(--fg); font: 13px var(--sans); }
.pm-filter input:focus-visible { outline: 2px solid var(--gilt-soft); outline-offset: 2px; }
.pm-binder-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; padding: 12px; background: var(--binder-tint); border: 1px solid color-mix(in srgb, var(--binder-accent) 30%, transparent); border-radius: 16px; }
.pm-pocket { display: flex; flex-direction: column; min-width: 0; padding: 18px; background: linear-gradient(140deg, rgba(255,255,255,.025), transparent), var(--bg-panel); border: 1px solid rgba(255,255,255,.035); }
.pm-pocket-top { display: flex; justify-content: space-between; gap: 8px; font: 500 10px var(--display); color: var(--fg-muted); }
.pm-pocket[data-owned="1"] .pm-pocket-top { color: var(--binder-accent); }
.pm-pocket-art { display: grid; place-items: center; padding: 20px 12px; }
.pm-art { width: auto; height: auto; max-width: 100%; object-fit: contain; border-radius: 7px; }
.pm-pocket-art .pm-art { width: 100%; max-width: 200px; aspect-ratio: 200 / 278; transition: transform .25s; }
.pm-pocket-art:hover .pm-art { transform: translateY(-4px); }
.pm-pocket[data-owned="0"] .pm-pocket-art .pm-art { opacity: .67; }
.pm-pocket-info h3 { color: var(--parchment); font: 600 14px/1.4 var(--display); margin: 0 0 7px; }
.pm-pocket-info a { color: inherit; }
.pm-pocket-info p { color: var(--fg-muted); font-size: 11px; margin: 4px 0; line-height: 1.6; }
.pm-pocket-actions { display: flex; gap: 5px; align-items: center; margin-top: auto; padding-top: 16px; }
.pm-pocket-actions > :first-child { margin-right: auto; }
.pm-owned-label { color: var(--binder-accent); font-size: 11px; font-weight: 600; }
.pm-icon-btn { border: 1px solid var(--border); border-radius: 6px; width: 28px; height: 30px; background: none; color: var(--fg-dim); cursor: pointer; }
.pm-icon-btn:disabled { opacity: .25; cursor: default; }
.pm-icon-btn:hover:enabled { background: var(--bg-hover); color: var(--parchment); }
.pm-discoveries { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pm-discovery { min-width: 0; }
.pm-discovery-art { display: grid; place-items: center; aspect-ratio: 1 / 1.25; padding: 18px; border-radius: 13px; background: var(--bg-panel); border: 1px solid var(--border); margin-bottom: 15px; }
.pm-discovery-art .pm-art { height: 100%; max-width: 100%; }
.pm-discovery h3 { font: 600 14px/1.4 var(--display); margin: 8px 0; }
.pm-discovery h3 a { color: var(--parchment); }
.pm-discovery .pm-eyebrow { font-size: 9px; line-height: 1.7; letter-spacing: .08em; color: var(--fg-muted); }
.pm-price { font: 600 17px var(--display); margin: 8px 0 14px; color: var(--parchment); }
.pm-home .pos { color: var(--pos-strong); }
.pm-home .neg { color: var(--neg-strong); }
.pm-watch-reason { color: var(--gilt) !important; line-height: 1.6; }
.pm-story { margin: 16px 0 0; padding-left: 14px; border-left: 2px solid var(--gilt-soft); color: var(--fg-dim); font-size: 14px; line-height: 1.7; white-space: pre-line; overflow-wrap: anywhere; }
.pm-card-story { margin: 0; font-size: 12px; line-height: 1.7; color: var(--fg-dim); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.pm-card-condition { margin: 0; color: var(--fg-muted); font-size: 10.5px; line-height: 1.6; }
.pm-favourite-label { color: var(--gilt); font-size: 10px; font-weight: 600; }
.pm-tile-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--hairline); padding-top: 12px; }
.pm-tile-actions .pv-my-link { font-size: 10.5px; text-align: left; }
.pm-saved { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.pm-import-preview { display: grid; gap: 5px; font-size: 12px; }
.pm-import-preview p { margin: 0; color: var(--fg-dim); }
.pv-my-dform textarea { border: 1px solid var(--border); border-radius: 10px; padding: 12px; background: var(--bg-sunken); color: var(--fg); font: 13px/1.7 var(--sans); width: 100%; box-sizing: border-box; resize: vertical; }
.pv-my-dform textarea:focus { outline: 2px solid var(--gilt-soft); outline-offset: 2px; }
.pv-my-dform button:disabled { opacity: .55; cursor: wait; }
.pv-my-tile-art { aspect-ratio: 1 / 1.25; padding: 12px; }
.pv-my-tile-img { display: block; height: auto; width: auto; max-height: 100%; max-width: 100%; object-fit: contain; }
.pv-my-edit { opacity: 1; }
.pv-my-chead { flex-wrap: wrap; }
.pv-my-title { font-size: 20px; }
.pv-my-tab { padding: 8px 11px; }
.pv-my-hero .pv-my-chartbox .pm-source { margin: 8px 10px; font-size: 10.5px; }
.pm-card-context { flex-basis: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; color: var(--fg-dim); font-size: 12px; line-height: 1.7; }
.pm-card-context p { margin: 4px 0; white-space: pre-line; overflow-wrap: anywhere; }

@media (max-width: 1000px) {
  .pm-home-hero { grid-template-columns: 1.1fr 1fr; }
  .pm-home-stats { gap: 18px; }
  .pm-binder-shelf { gap: 15px; }
  .pm-discoveries { gap: 14px; }
}
@media (max-width: 760px) {
  .pm-home-hero { grid-template-columns: 1fr; gap: 18px; }
  .pm-home-intro h2 br { display: none; }
  .pm-home-intro h2 { max-width: 16ch; font-size: 36px; }
  .pm-home-intro .pm-intro { max-width: 48ch; }
  .pm-home-feature { grid-template-columns: 190px 1fr; padding: 0; text-align: left; gap: 15px; }
  .pm-feature-caption { text-align: left; margin: 0; }
  .pm-stage .card-stage { --cw: 140px; }
  .pm-feature-caption .pm-eyebrow { font-size: 9px; }
  .pm-binder-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pm-binder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px; }
  .pm-binder-stats { gap: 20px; flex-wrap: wrap; }
  .pm-binder-stats > div { max-width: 100%; }
  .pm-binder-stats progress { order: 3; flex-basis: 100%; }
  .pm-discoveries { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .pm-binder-invite { flex-direction: column; align-items: flex-start; gap: 20px; padding: 25px; }
  .pm-binder-title { align-items: flex-start; flex-wrap: wrap; }
  .pm-onboard { gap: 20px; }
  .pm-brief > a { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .pm-brief > a:last-child { border-bottom: 0; }
}
@media (max-width: 480px) {
  .pm-section-head { align-items: flex-start; flex-wrap: wrap; gap: 12px; }
  .pm-section-head h2 { font-size: 21px; }
  .pm-home-feature { grid-template-columns: 145px 1fr; gap: 8px; }
  .pm-stage .card-stage { --cw: 115px; }
  .pm-home-intro h2 { font-size: 32px; }
  .pm-home-stats strong { font-size: 20px; }
  .pm-home-stats { gap: 20px; margin-top: 28px; }
  .pm-home-stats > div:last-child { flex-basis: 100%; }
  .pm-feature-caption h3 { font-size: 16px; }
  .pm-feature-caption blockquote { font-size: 12px; }
  .pm-binder-cover { height: 174px; border-left-width: 8px; }
  .pm-cover-art { height: 112px; max-width: 50%; }
  .pm-cover-art:first-child { transform: translateX(-22px) rotate(-12deg); }
  .pm-cover-art:nth-child(2) { transform: translateX(22px) rotate(12deg); }
  .pm-pocket { padding: 10px; }
  .pm-pocket-art { padding: 14px 0; }
  .pm-pocket-actions { gap: 3px; flex-wrap: wrap; }
  .pm-pocket-actions > :first-child { flex-basis: 100%; margin-bottom: 6px; }
  .pm-pocket-top { font-size: 9px; }
  .pm-pocket-info h3 { font-size: 12px; }
  .pm-pocket-info p { font-size: 10px; }
  .pm-binder-stats { padding: 18px; }
  .pm-onboard { grid-template-columns: 1fr; gap: 12px; }
  .pm-onboard > div { border-bottom: 1px solid var(--hairline); padding-bottom: 12px; }
  .pm-onboard h3 { margin: 6px 0; }
  .pm-collection-tools { gap: 8px; }
  .pm-collection-tools .pm-filter { width: 100%; }
  .pm-collection-tools .pv-my-btn { padding: 0 12px; font-size: 11px; }
  .pm-tile-actions { flex-wrap: wrap; }
  .pv-my-tabs { gap: 3px; }
  .pv-my-tab { padding: 8px 10px; font-size: 12px; }
  .pv-my-title { width: 100%; margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html:not([data-member-motion="full"]) :is(.pm-binder-cover,.pm-pocket-art .pm-art) { transition: none; }
  html:not([data-member-motion="full"]) :is(.pm-binder:hover .pm-binder-cover,.pm-pocket-art:hover .pm-art) { transform: none; }
}
