.rsf-pd{--ink:#202024;--muted:#68666d;--plum:#54205f;--lav:#f2edf4;--line:#ded9e1;max-width:1160px;margin:0 auto;padding:clamp(18px,4vw,44px);color:var(--ink);font:16px/1.55 system-ui,-apple-system,Segoe UI,sans-serif;background:#fff}.rsf-pd *{box-sizing:border-box}.rsf-pd h1,.rsf-pd h2,.rsf-pd h3,.rsf-pd p{margin-top:0}.pd-hero{padding:clamp(26px,5vw,56px);margin-bottom:26px;border-radius:18px;background:linear-gradient(125deg,#27132e,#5b2867);color:#fff}.pd-hero h1{font-size:clamp(2rem,5vw,3.25rem);line-height:1.08;margin-bottom:12px}.pd-hero p:last-child{margin:0;color:#f2eaf4}.pd-kicker{font-weight:800;letter-spacing:.13em;font-size:.75rem;color:#8a5992;margin-bottom:10px}.pd-hero .pd-kicker{color:#e3c6e8}.pd-quiz{border:1px solid var(--line);border-radius:16px;padding:clamp(20px,4vw,32px);margin-bottom:40px;box-shadow:0 7px 22px #25142b0c}.pd-quiz-intro{display:flex;align-items:center;justify-content:space-between;gap:20px}.pd-quiz-intro h2,.pd-library h2{font-size:clamp(1.5rem,3vw,2.1rem);margin-bottom:8px}.pd-quiz-intro p:last-child{color:var(--muted);margin-bottom:0}.pd-button{appearance:none;border:0;border-radius:8px;padding:12px 18px;font:700 1rem inherit;background:var(--plum);color:#fff;cursor:pointer}.pd-button:hover{background:#71357c}.pd-button:focus-visible,.rsf-pd input:focus-visible,.rsf-pd select:focus-visible,.rsf-pd summary:focus-visible{outline:3px solid #c09ac8;outline-offset:2px}.pd-progress{display:flex;align-items:center;gap:18px;margin:26px 0 20px;color:var(--muted)}.pd-progress progress{flex:1;accent-color:var(--plum);height:8px}.pd-question h3{font-size:1.3rem;margin-bottom:14px}.pd-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.pd-choice{display:flex;align-items:flex-start;gap:10px;padding:14px;border:1px solid var(--line);border-radius:10px;cursor:pointer}.pd-choice:has(input:checked){border-color:var(--plum);background:var(--lav)}.pd-choice input,.pd-completed input{accent-color:var(--plum);margin-top:5px}.pd-quiz-actions{display:flex;justify-content:space-between;margin-top:22px}.pd-quiz-actions .pd-back{background:#eeeaf0;color:var(--ink)}.pd-quiz-actions .pd-back:disabled{opacity:.55;cursor:not-allowed}.pd-completed-toggle{display:block;border:0;background:none;color:var(--plum);text-decoration:underline;text-align:left;padding:8px 0;cursor:pointer}.pd-completed{max-height:200px;overflow:auto;border:1px solid var(--line);padding:12px;border-radius:8px;grid-column:1/-1}.pd-completed label{display:block;padding:4px}.pd-error-message{color:#a21b30;font-weight:700}.pd-recommendation{margin-top:26px;padding-top:22px;border-top:1px solid var(--line)}.pd-recommendation h3{font-size:1.45rem}.pd-recommendation>p{color:var(--muted)}.pd-library{margin-top:42px}.pd-library-head{display:flex;align-items:end;justify-content:space-between;margin-bottom:18px}.pd-count{color:var(--muted);font-weight:700}.pd-filter-help{color:var(--muted);font-size:.92rem;margin:-6px 0 16px}.pd-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:22px;align-items:end}.pd-filters label{display:flex;flex-direction:column;gap:5px;font-size:.82rem;font-weight:700;color:#4b4850}.pd-filters input,.pd-filters select{min-width:0;width:100%;min-height:44px;padding:9px 10px;border:1px solid #cfc9d2;border-radius:7px;background:#fff;color:var(--ink);font:inherit;font-size:.94rem}.pd-clear{border:1px solid var(--line);background:white;border-radius:7px;padding:11px;cursor:pointer;color:var(--plum);font-weight:700}.pd-cards,.pd-result-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.pd-card{display:grid;grid-template-columns:170px minmax(0,1fr);overflow:hidden;border:1px solid var(--line);border-radius:12px;background:white;box-shadow:0 4px 14px #25142b0a}.pd-cover{background:#eee8f0;min-height:180px}.pd-cover img{width:100%;height:100%;min-height:180px;object-fit:cover;display:block}.pd-no-cover{height:100%;min-height:180px;display:grid;place-items:center;text-align:center;padding:14px;color:var(--muted);font-weight:700}.pd-card-body{padding:17px}.pd-card h3{font-size:1.1rem;line-height:1.25;margin-bottom:8px}.pd-card-body>p:not(.pd-meta){color:#54515a;font-size:.93rem}.pd-meta{font-size:.76rem;text-transform:uppercase;letter-spacing:.06em;color:var(--plum);font-weight:800;margin-bottom:6px}.pd-tags{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}.pd-tags span{background:var(--lav);color:#4a2c50;border-radius:20px;padding:4px 8px;font-size:.73rem;font-weight:700}.pd-card details{border-top:1px solid var(--line);padding-top:10px;margin-top:10px}.pd-card summary{cursor:pointer;color:var(--plum);font-weight:750}.pd-card details p{margin:10px 0 0;font-size:.91rem;color:#504d55}.pd-card details a{color:var(--plum)}.pd-empty{padding:26px;border:1px dashed var(--line);text-align:center;color:var(--muted)}.pd-footer{margin-top:35px;padding-top:16px;border-top:1px solid var(--line);font-size:.84rem;color:var(--muted)}
@media(max-width:800px){.pd-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.pd-cards,.pd-result-cards{grid-template-columns:1fr}}
@media(max-width:560px){.rsf-pd{padding:14px}.pd-quiz-intro{align-items:stretch;flex-direction:column}.pd-quiz-intro .pd-button{width:100%}.pd-choices{grid-template-columns:1fr}.pd-library-head{align-items:start;flex-direction:column;gap:4px}.pd-filters{grid-template-columns:1fr 1fr;gap:9px}.pd-card{grid-template-columns:1fr}.pd-cover{min-height:0;max-height:260px}.pd-cover img{height:auto;max-height:260px;min-height:0;object-fit:cover;object-position:center 35%}.pd-no-cover{min-height:120px}.pd-card-body{padding:16px}}
.pd-instructions{margin:24px 0 30px;border:1px solid #dfd4e4;border-left:5px solid var(--plum);border-radius:12px;background:#faf7fb;box-shadow:0 4px 14px #25142b08}.pd-instructions>summary{position:relative;display:flex;flex-direction:column;gap:4px;padding:18px 54px 18px 22px;cursor:pointer;list-style:none}.pd-instructions>summary::-webkit-details-marker{display:none}.pd-instructions>summary::after{content:'＋';position:absolute;right:20px;top:24px;color:var(--plum);font-size:1.25rem;font-weight:800}.pd-instructions[open]>summary::after{content:'−'}.pd-instructions>summary strong{font-size:1.2rem;color:var(--ink)}.pd-instruction-prompt{font-size:.82rem;color:var(--plum);font-weight:700}.pd-instructions-body{padding:0 22px 18px;color:#504d55}.pd-instructions-body ol{padding-left:1.4rem}.pd-instructions-body li{margin:8px 0}.pd-instructions-body p:last-child{margin-bottom:0}.pd-random-controls{display:flex;align-items:center;gap:12px;margin-top:18px}.pd-random-controls>span,.pd-random-note{color:var(--muted);font-size:.9rem}.pd-random-note{padding:10px 12px;border-radius:8px;background:var(--lav)}
@media(max-width:560px){.pd-instructions>summary{padding:16px 48px 16px 16px}.pd-instructions>summary::after{right:15px;top:22px}.pd-instructions-body{padding:0 16px 16px}.pd-random-controls{align-items:stretch;flex-direction:column}.pd-random-controls .pd-button{width:100%}}

.pd-library-pagination{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;margin:20px 0}.pd-library-pagination .pd-prev{justify-self:start}.pd-library-pagination .pd-next-page{justify-self:end}.pd-library-pagination label{display:flex;align-items:center;justify-content:center;font-size:.88rem;font-weight:700;color:#4b4850}.pd-library-pagination select{min-height:42px;min-width:72px;padding:8px 10px;border:1px solid #cfc9d2;border-radius:7px;background:#fff;color:var(--ink);font:inherit;text-align:center}.pd-page-button{min-height:42px;min-width:104px;border:1px solid var(--plum);border-radius:7px;padding:9px 16px;background:#fff;color:var(--plum);font:700 1rem inherit;cursor:pointer}.pd-page-button:hover:not(:disabled){background:var(--lav)}.pd-page-button:disabled{opacity:.45;cursor:not-allowed}.pd-page-button:focus-visible,.pd-library-pagination select:focus-visible{outline:3px solid #c09ac8;outline-offset:2px}
@media(max-width:560px){.pd-library-pagination{grid-template-columns:1fr auto 1fr;gap:6px}.pd-page-button{min-width:0;padding:8px 10px;font-size:.9rem}.pd-library-pagination select{min-width:58px}}
