.assigned-background-library{display:grid;gap:24px}
.assigned-background-library,.assigned-background-library .section-heading>div,.assigned-background-library label{min-width:0}
.assigned-background-library small,.assigned-background-library p{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.assigned-background-library form.background-library-upload{padding:22px!important;border:1px solid rgba(149,174,206,.14)!important;border-radius:16px!important;background:rgba(12,22,37,.44)!important}
.background-grants-fieldset{margin:0;padding:0;border:0;min-width:0}
.background-grants-fieldset legend{margin-bottom:12px;font-size:13px;font-weight:700}
.background-guild-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:248px;overflow:auto;padding:2px 4px 2px 0;scrollbar-width:thin;scrollbar-color:#37b9d4 transparent}
.background-guild-choice{display:flex!important;align-items:center;gap:12px!important;margin:0!important;padding:11px 13px;border:1px solid rgba(149,174,206,.12);border-radius:10px;cursor:pointer;background:rgba(8,16,28,.3);transition:border-color .16s,background-color .16s}
.background-guild-choice:has(input:checked){border-color:rgba(55,199,225,.5);background:rgba(55,199,225,.07)}
.background-guild-choice input{width:17px!important;height:17px!important;min-width:17px;accent-color:#37c7e1;margin:0!important}
.background-guild-choice span{min-width:0;display:grid;gap:3px}
.background-guild-choice strong{font-size:12px;overflow-wrap:anywhere;color:inherit}
.background-guild-choice small{font-size:11px;opacity:.65}
.assigned-background-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}
.assigned-background-card{min-width:0;overflow:hidden;border:1px solid rgba(149,174,206,.16);border-radius:16px;background:rgba(12,22,37,.52)}
.assigned-background-image{display:block;width:100%;aspect-ratio:8/3;object-fit:cover}
.assigned-background-library form.assigned-background-settings{padding:18px!important;gap:16px!important;background:transparent!important}
.assigned-background-settings details{min-width:0;border-top:1px solid rgba(149,174,206,.12);padding-top:14px}
.assigned-background-settings summary{cursor:pointer;font-size:13px;font-weight:700;min-height:26px}
.assigned-background-settings summary b{margin-left:8px;display:inline-grid;place-items:center;min-width:24px;padding:2px 6px;border-radius:6px;background:rgba(55,199,225,.1);color:#6bddf1;font-size:11px}
.assigned-background-settings details[open] .background-guild-choices{margin-top:12px;grid-template-columns:1fr;max-height:230px}
.background-grant-note{margin:0;font-size:12px;line-height:1.6;opacity:.7}
.background-library-upload input[type=file]{max-width:100%;font-size:12px;padding:10px}
.background-library-upload input[type=file]::file-selector-button{border:1px solid rgba(55,199,225,.35);border-radius:7px;background:rgba(55,199,225,.09);color:inherit;font:inherit;padding:7px 10px;margin-right:12px;cursor:pointer}
@media(max-width:900px){.assigned-background-list{grid-template-columns:1fr}}
@media(max-width:600px){.background-guild-choices{grid-template-columns:1fr}.assigned-background-library form.background-library-upload{padding:16px!important}.assigned-background-library form.assigned-background-settings{padding:15px!important}}
