/* Shared catalogue workspace. Portrait framing remains in the catalogue styles. */
body:has(.collection-workspace){background:#fffdf7}
main.collection-workspace{--sage:#526d4c;--sage-line:#d5ddc9;--sage-soft:#eff2e7;--collection-ink:#122a43;--collection-muted:#5d685b;max-width:1480px;margin:0 auto;padding:26px clamp(18px,3.5vw,48px) 44px;color:var(--collection-ink)}
.collection-workspace .back-link{display:inline-flex;align-items:center;min-height:32px;font:13px/1.5 Arial,sans-serif;color:#657061;text-decoration:none}
.collection-workspace .back-link:hover{text-decoration:underline;text-underline-offset:4px}
.collection-workspace .collection-intro{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:25px 0 20px}
.collection-workspace .eyebrow{font:600 11px/1.6 Arial,sans-serif;letter-spacing:2px;text-transform:uppercase;color:#8f702b;margin:0 0 12px}
.collection-workspace h1{font:400 clamp(32px,3.4vw,48px)/1.15 Georgia,serif;letter-spacing:-1.2px;color:var(--collection-ink);margin:0 0 14px}
.collection-workspace h1 em{color:#a27b2f;font-weight:400}
.collection-workspace .collection-description{font:19px/1.5 Georgia,serif;max-width:850px;color:var(--collection-muted);margin:0}
.collection-workspace .collection-badge{display:inline-flex;gap:7px;align-items:center;flex-shrink:0;border:1px solid var(--sage-line);background:#f4f5ec;color:#52674b;padding:9px 12px;border-radius:20px;font:12px/1.5 Arial,sans-serif}
.collection-workspace .notice{font:12px/1.7 Arial,sans-serif;max-width:1120px;color:#647060;margin:0 0 22px}
.collection-workspace .collection-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;background:transparent;border:0;box-shadow:none;padding:0;margin:0 0 30px;color:var(--collection-ink)}
.collection-workspace .collection-stats>.collection-stat{display:flex;align-items:center;gap:15px;min-width:0;padding:20px 18px;border:1px solid var(--sage-line);border-radius:10px;background:linear-gradient(120deg,#f8f8ef,#fffdf8);box-shadow:0 3px 10px #526d4c05}
.collection-workspace .stat-icon{display:flex;align-items:center;justify-content:center;flex:0 0 36px;color:#829571}
.collection-workspace .stat-copy{min-width:0}
.collection-workspace .stat-label{display:block;font:12px/1.4 Arial,sans-serif;color:#586654}
.collection-workspace .collection-stats strong{display:block;font:400 29px/1.15 Georgia,serif;color:#203e35;margin:7px 0 0}
.collection-workspace .collection-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 15px}
.collection-workspace .collection-section-heading h2{font:400 25px/1.3 Georgia,serif;margin:0;color:var(--collection-ink)}
.collection-workspace .collection-pending{font:12px/1.4 Arial,sans-serif;color:#657659;background:#eff2e7;border:1px solid #e0e5d5;border-radius:18px;padding:8px 12px}
.collection-workspace .collection-filters-panel{border:1px solid var(--sage-line);border-radius:10px;background:#f5f6ee;overflow:hidden}
.collection-workspace .collection-filters-panel>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;cursor:pointer;min-height:44px;padding:10px 16px;color:var(--sage);font:600 12px/1.5 Arial,sans-serif}
.collection-workspace .collection-filters-panel>summary::-webkit-details-marker{display:none}
.collection-workspace .collection-filters-panel>summary:hover{background:#edf1e3}
.collection-workspace .filter-label-open{display:none}
.collection-workspace .collection-filters-panel[open] .filter-label-open{display:inline}
.collection-workspace .collection-filters-panel[open] .filter-label-closed{display:none}
.collection-workspace .collection-chevron{font-size:22px;line-height:1;transition:transform .15s}
.collection-workspace .collection-filters-panel[open] .collection-chevron{transform:rotate(180deg)}
.collection-workspace .collection-filters{display:grid;grid-template-columns:1.3fr repeat(calc(var(--filter-count) - 1),minmax(0,1fr));gap:12px;padding:0 16px 16px}
.collection-workspace .collection-filters label{display:grid;gap:7px;min-width:0;font:12px/1.4 Arial,sans-serif;color:#586654}
.collection-workspace .collection-filters input,.collection-workspace .collection-filters select{width:100%;min-width:0;height:44px;padding:10px 11px;border:1px solid #d8dece;border-radius:6px;background:#fffef9;color:var(--collection-ink);font:13px Arial,sans-serif}
.collection-workspace .collection-result-bar{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:8px 0 18px;font:12px/1.5 Arial,sans-serif;color:#657061}
.collection-workspace .collection-result-bar button{padding:10px 0;border:0;background:transparent;color:#526d4c;text-decoration:underline;text-underline-offset:3px;font:inherit;min-height:40px}
.collection-workspace #results,.collection-workspace .book-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:start}
.collection-workspace .character-card,.collection-workspace .book-card{background:#fffef9;border:1px solid var(--sage-line);border-radius:11px;box-shadow:0 4px 15px #526d4c07;overflow:hidden}
.collection-workspace .character-card.owned{border-color:#b1c29f}
.collection-workspace .illustrated .card-heading{background:linear-gradient(120deg,#f4f5eb,#fffdf6);color:var(--collection-ink);border-bottom:1px solid #e0e5d5;min-height:130px}
.collection-workspace .illustrated .card-heading:after{content:none}
.collection-workspace .illustrated .collection-name{color:#6b7e58;font:11px/1.5 Arial,sans-serif}
.collection-workspace .illustrated .card-heading h2{color:var(--collection-ink);font:400 23px/1.2 Georgia,serif}
.collection-workspace .character-state{color:#5b7251;border-color:#d4ddc7;background:#eff3e6;font:10px/1.5 Arial,sans-serif}
.collection-workspace .illustrated .priority{color:#a88334;background:transparent}
.collection-workspace .illustrated .priority:hover,.collection-workspace .illustrated .priority[aria-pressed=true]{background:#f4edd9;color:#89651c}
.collection-workspace .illustrated>.level-control{margin:18px 18px 0;font:12px/1.5 Arial,sans-serif;color:#53624e}
.collection-workspace .level-control select{max-width:65%;border-color:var(--sage-line);background:#fffef9;color:var(--collection-ink)}
.collection-workspace .illustrated>.level-track{margin:14px 18px 12px;height:6px;background:#e8eddf}
.collection-workspace .illustrated .level-track span{background:#839d69}
.collection-workspace .illustrated>.check{margin:0 18px;color:#536b4a;font:12px/1.5 Arial,sans-serif}
.collection-workspace .illustrated>details{margin:12px 18px 16px;border-color:#e1e6d8;font:12px/1.6 Arial,sans-serif;color:#63715c}
.collection-workspace .book-top,.collection-workspace .book-top.book-medallion{background:linear-gradient(120deg,#f2f4e8,#fffdf6);color:var(--collection-ink);border-bottom:1px solid #e0e5d5}
.collection-workspace .book-identity h2{color:var(--collection-ink)}
.collection-workspace .book-identity .book-author{color:#63715c}
.collection-workspace .book-kind,.collection-workspace .book-identity .book-kind{color:#52684b;background:#ecf0e2;border-color:#ced9bf}
.collection-workspace .book-kind-collector,.collection-workspace .book-identity .book-kind-collector{color:#6b5523;background:#f4ecd7;border-color:#d9c697;box-shadow:none}
.collection-workspace[data-collection=keys] .book-top:not(.book-medallion),.collection-workspace[data-collection=infinity] .book-top:not(.book-medallion){display:flex;justify-content:center;align-items:center;height:190px;min-height:190px;padding:20px}
.collection-workspace[data-collection=keys] .book-top:not(.book-medallion)>img,.collection-workspace[data-collection=infinity] .book-top:not(.book-medallion)>img{width:auto;height:150px;max-width:100%;max-height:150px;object-fit:contain}
.collection-workspace .book-body{padding:18px}
.collection-workspace .book-body h2{font:400 23px/1.25 Georgia,serif;min-height:58px;color:var(--collection-ink);margin:0}
.collection-workspace .book-author{color:#63715c}
.collection-workspace .book-check,.collection-workspace .condition-row,.collection-workspace .reading-row{color:#53624e}
.collection-workspace input[type=checkbox]{accent-color:#6e885a}
.collection-workspace .book-body details,.collection-workspace .character-card details{border-color:#e0e5d5}
.collection-workspace .book-body summary,.collection-workspace .character-card summary{cursor:pointer;color:#5b704f}
.collection-workspace textarea,.collection-workspace .book-body textarea,.collection-workspace .book-body details input[type=text],.collection-workspace .condition-row select,.collection-workspace .reading-row select{background:#fafbf5;border:1px solid var(--sage-line);color:var(--collection-ink);border-radius:6px}
.collection-workspace :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #8ba176;outline-offset:3px}
.collection-workspace .pagination{display:flex;justify-content:center;align-items:center;gap:20px;margin:25px 0 10px;color:#5f7055}
.collection-workspace .pagination button{background:#f4f6eb;border:1px solid #d1dcc2;color:#425e3b;border-radius:6px;min-height:42px;padding:9px 13px}
.collection-workspace .pagination button:disabled{opacity:.45;cursor:default}
.collection-workspace .collection-save{font:12px/1.7 Arial,sans-serif;color:#607157;border-bottom:1px solid #e2e7d9;padding:14px 0;margin:14px 0}
.collection-workspace .collection-guides{margin-top:18px}
.collection-workspace .help{font:12px/1.8 Arial,sans-serif;color:#63715c;border-color:#e0e5d5;margin:10px 0}
.collection-workspace .help summary{min-height:38px;cursor:pointer;color:#5b704f}
.collection-workspace .help p{max-width:1080px}
.collection-workspace .help a{color:#637548;text-underline-offset:3px}
.collection-workspace .books-empty,.collection-workspace .empty{grid-column:1/-1;padding:40px 20px;text-align:center;color:#657061}
@media(min-width:1400px){.collection-workspace #results{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1099px){.collection-workspace .collection-badge{display:none}.collection-workspace #results,.collection-workspace .book-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.collection-workspace .collection-stats{gap:10px}.collection-workspace .collection-stat{gap:10px}.collection-workspace .collection-stats>.collection-stat{padding:16px 12px}.collection-workspace .stat-icon{flex-basis:28px}.collection-workspace .stat-icon svg{width:28px}}
@media(max-width:999px){.collection-workspace .collection-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.collection-workspace[data-collection=infinity] .collection-filters>label:first-child{grid-column:1/-1}}
@media(max-width:699px){main.collection-workspace{padding-top:18px}.collection-workspace .collection-intro{margin-top:19px}.collection-workspace h1{font-size:34px;letter-spacing:-.8px}.collection-workspace .collection-description{font-size:17px}.collection-workspace .collection-stats{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:24px}.collection-workspace .collection-stats>.collection-stat{padding:15px 12px;gap:10px}.collection-workspace .collection-stats strong{font-size:25px}.collection-workspace .stat-label{font-size:11px}.collection-workspace .collection-section-heading{align-items:flex-start;flex-direction:column;gap:8px}.collection-workspace .collection-section-heading h2{font-size:23px}.collection-workspace #results,.collection-workspace .book-grid{grid-template-columns:1fr;gap:16px}.collection-workspace .collection-filters{gap:12px;padding-inline:12px}.collection-workspace .collection-filters input,.collection-workspace .collection-filters select,.collection-workspace textarea{font-size:16px}.collection-workspace .collection-filters>label:first-child{grid-column:1/-1}.collection-workspace .pagination{gap:12px;font-size:12px}.collection-workspace .book-body h2{min-height:0}.collection-workspace .book-check{min-height:40px}}
@media(max-width:359px){.collection-workspace .stat-icon{display:none}.collection-workspace .collection-filters{grid-template-columns:1fr}.collection-workspace .pagination{gap:8px}.collection-workspace .pagination button{padding-inline:8px}}
@media(prefers-reduced-motion:reduce){.collection-workspace .collection-chevron{transition:none}}

.collection-workspace:is([data-collection=infinity],[data-collection=keys]) .book-top.book-medallion{height:auto;min-height:174px;display:grid;grid-template-columns:96px minmax(0,1fr);gap:16px;padding:20px 18px}
.collection-workspace:is([data-collection=infinity],[data-collection=keys]) .book-top.book-medallion>img{height:96px;width:96px;max-height:none;max-width:100%;border-radius:50%;object-fit:cover;filter:none}
.collection-workspace:is([data-collection=infinity],[data-collection=keys]) .book-identity h2{font:400 22px/1.2 Georgia,serif;overflow-wrap:anywhere;margin:9px 0 7px}
.collection-workspace[data-collection=infinity] .book-identity .book-kind-crystal{background:#e8edf4;border-color:#c4cedf;color:#455e80}
.collection-workspace[data-collection=infinity] .book-identity .book-kind-lightfx{background:#f4edd9;border-color:#d6c28f;color:#705923}
.collection-workspace:is([data-collection=infinity],[data-collection=keys]) .book-card:has(.photo-credit) .book-top.book-medallion>img{object-fit:contain;border-radius:6px}
@media(max-width:380px){.collection-workspace:is([data-collection=infinity],[data-collection=keys]) .book-top.book-medallion{grid-template-columns:80px minmax(0,1fr);padding:16px 14px;gap:12px}.collection-workspace:is([data-collection=infinity],[data-collection=keys]) .book-top.book-medallion>img{width:80px;height:80px}.collection-workspace:is([data-collection=infinity],[data-collection=keys]) .book-identity h2{font-size:20px}}

.collection-workspace[data-collection=keys] .book-identity .book-kind-jumbo{background:#f4edd9;border-color:#d6c28f;color:#705923}
