/* Shared collection control: readable in material headers and on every card. */
.collection-form{margin:0;max-width:100%}
.button.collection-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:42px;padding:10px 15px;border:1px solid var(--line);border-radius:9px;background:var(--white);color:var(--ink);font:600 12px/1.5 Arial,sans-serif;white-space:nowrap;text-decoration:none;cursor:pointer;transition:background .15s,border-color .15s,box-shadow .15s}
.collection-button>.icon{display:block;flex:none;width:19px;height:21px;opacity:1}
.button.collection-button:hover{border-color:var(--wine);box-shadow:0 2px 9px #28121d13}
.button.collection-button.selected{background:var(--wine);border-color:var(--wine);color:#fff}
.collection-button.selected>.icon{fill:currentColor}
.collection-button:focus-visible{outline:2px solid var(--theme-link,var(--wine));outline-offset:3px}
.collection-button:disabled{cursor:progress;opacity:.75}
.card-bookmark .collection-form{display:block;line-height:1}
.card-bookmark .button.collection-button,
.member-profile .card-bookmark .button.collection-button,
.reference-bookmark .card-bookmark .button.collection-button{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;min-width:38px;min-height:38px;padding:8px;border:1px solid #ffffff70;border-radius:9px;background:#251b27e8;color:#fff;box-shadow:0 2px 9px #0003;font-size:12px}
.card-bookmark .collection-button>.collection-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.card-bookmark .button.collection-button>.icon,
.reference-bookmark .card-bookmark .button.collection-button:not(.selected):not(:hover):not(:focus-visible)>.icon{display:block;opacity:1;width:19px;height:21px;filter:none}
.card-bookmark .button.collection-button.selected,
.member-profile .card-bookmark .button.collection-button.selected{background:var(--wine);border-color:#ffffffb3;color:#fff}
.card-bookmark .button.collection-button:hover{background:#3f2d42;border-color:#fff;box-shadow:0 2px 10px #0005}
.card-bookmark .button.collection-button.selected:hover{background:var(--wine)}
.member-profile .card-bookmark,.member-profile .reference-bookmark .card-bookmark{top:8px;right:8px}
.member-profile .saved-story .card-bookmark,.member-profile .saved-story.reference-bookmark .card-bookmark{right:7px;top:7px}
@media(max-width:760px){.member-profile .saved-story .card-bookmark,.member-profile .saved-story.reference-bookmark .card-bookmark{right:calc(62% + 7px)}}
.member-profile .saved-story .card-bookmark .button.collection-button{width:34px;height:34px;min-width:34px;min-height:34px;padding:6px;border-radius:8px}
.collection-notice{position:fixed;z-index:1200;right:24px;bottom:24px;display:flex;align-items:center;gap:20px;width:max-content;max-width:min(440px,calc(100vw - 32px));padding:15px 16px 15px 19px;border:1px solid var(--line);border-left:3px solid var(--wine);border-radius:12px;background:var(--white);color:var(--ink);box-shadow:0 8px 40px #1e14252b;font:13px/1.6 Arial,sans-serif}
.collection-notice[hidden]{display:none}
.collection-notice-text{min-width:0;overflow-wrap:anywhere}
.collection-notice>button{display:grid;place-items:center;flex:none;width:30px;height:30px;padding:0;border:1px solid var(--line);border-radius:7px;background:var(--paper);color:var(--muted);font:22px/1 Arial,sans-serif;cursor:pointer}
.collection-notice>button:focus-visible{outline:2px solid var(--wine);outline-offset:2px}
.collection-notice[data-state=error]{border-left-color:#b64d55}
html[data-theme=dark] .button.collection-button:not(.selected){border-color:var(--line);background:var(--white);color:var(--ink)}
html[data-theme=dark] .card-bookmark .button.collection-button:not(.selected){border-color:#ffffff70;background:#251b27e8;color:#fff}
@media(max-width:520px){.collection-notice{bottom:16px;right:16px;gap:12px;padding:13px 12px 13px 16px}}
@media(prefers-reduced-motion:reduce){.button.collection-button{transition:none}}

/* Compact cast controls share one layout for guests and signed-in members. */
.game-person-save .button.collection-button{box-sizing:border-box;display:inline-flex;flex:none;align-items:center;justify-content:center;gap:0;width:34px;min-width:34px;max-width:34px;height:34px;min-height:34px;padding:7px;margin:0;border-radius:7px;overflow:hidden}
.game-person-save .collection-button>.collection-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.game-person-save .button.collection-button>.icon{display:block;flex:none;width:18px;height:18px}
