.resource-pack-heading{gap:20px;align-items:center}.resource-pack-toolbar{display:flex;gap:10px;flex-shrink:0}.resource-pack-rules{padding:18px 22px;margin:0 0 24px;border-radius:14px;background:#f5f8fc;color:#53657d;font-size:12px;line-height:1.7}.resource-pack-rules strong{color:#31517b;font-size:13px}.resource-pack-rules p{margin:5px 0 0}.resource-pack-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr));gap:22px;align-items:start}.resource-pack-card{background:#fff;min-width:0;border-radius:17px;padding:24px;box-shadow:0 4px 26px #1c354914}.resource-pack-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.resource-pack-type{color:#64748b;font-size:11px;font-weight:600}.resource-pack-card h3{font-size:17px;line-height:1.45;color:#1f2937;margin:7px 0;overflow-wrap:anywhere}.resource-pack-recipient{color:#64748b;font-size:11px;overflow-wrap:anywhere;margin:4px 0 0}.resource-pack-status{border-radius:6px;padding:4px 7px;background:#f1f3f6;color:#64748b;white-space:nowrap;font-size:11px;line-height:1.5}.resource-pack-status.is-active{background:#eaf8ef;color:#247446}.resource-pack-status.is-scheduled{background:#edf4ff;color:#3168ae}.resource-pack-status.is-expired{background:#fff5e8;color:#9a671c}.resource-pack-status.is-revoked{background:#fef0ef;color:#ac4747}.resource-pack-remaining{display:flex;flex-direction:column;gap:7px;margin-top:24px}.resource-pack-remaining>span{font-size:12px;color:#6b778a}.resource-pack-remaining>strong{font:600 28px/1.3 "JetBrains Mono",ui-monospace,SFMono-Regular,Consolas,monospace;color:#244e79;overflow-wrap:anywhere}.resource-pack-card.is-tokens .resource-pack-remaining>strong{color:#6b4a99}.resource-pack-remaining small{font-size:12px;font-weight:500;line-height:1.4}.resource-pack-remaining>p{margin:0;color:#8190a2;font-size:11px}.resource-pack-progress{height:5px;border-radius:8px;background:#edf1f7;margin:16px 0 20px;overflow:hidden}.resource-pack-progress i{height:100%;display:block;background:#5484bb;border-radius:8px;transition:width .2s}.resource-pack-card.is-tokens .resource-pack-progress i{background:#9b7bb8}.resource-pack-dates{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:0}.resource-pack-dates dt{font-size:11px;color:#8491a3}.resource-pack-dates dd{font-size:12px;line-height:1.6;color:#44576b;margin:5px 0 0;overflow-wrap:anywhere}.resource-pack-scope{margin-top:20px;padding-top:16px;border-top:1px solid #eef1f5}.resource-pack-scope summary{color:#54677d;font-size:12px;cursor:pointer;line-height:1.6}.resource-pack-scope summary:hover{color:#1d5c9b}.resource-pack-scope>div{margin-top:14px}.resource-pack-scope>div>strong{font-size:11px;color:#6b7a8b;font-weight:500}.resource-pack-scope>div>div{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}.resource-pack-scope-chip,.resource-pack-scope-all{font-size:11px;background:#f5f7fa;padding:4px 7px;border-radius:5px;color:#52657d;max-width:100%;overflow-wrap:anywhere}.resource-pack-card footer{display:flex;justify-content:flex-end;margin-top:15px}.resource-pack-revoke{color:#ad5353!important;font-size:12px!important}.resource-pack-error{font-size:13px;color:#b83d3d;line-height:1.6;margin:12px 0}.resource-pack-empty{grid-column:1/-1;text-align:center;padding:64px 24px;background:#fafbfc;border-radius:16px;color:#8390a1}.resource-pack-empty>span{font-size:36px}.resource-pack-empty h3{color:#526174;font-size:16px}.resource-pack-empty p{font-size:13px;line-height:1.7}.resource-pack-pagination{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:24px;font-size:12px;color:#718096}.resource-pack-pagination>div{display:flex;gap:8px}.resource-pack-filter{max-width:580px;margin-bottom:24px}.resource-pack-user-picker>label{font-size:12px;font-weight:600;color:#526174}.resource-pack-user-search{display:flex;gap:8px;margin-top:8px}.resource-pack-user-search input{flex:1;min-width:0}.resource-pack-selected-user{display:flex;align-items:center;justify-content:space-between;gap:16px}.resource-pack-selected-user:empty{display:none}.resource-pack-selected-user>span{display:grid;gap:4px;min-width:0;margin:12px 0 0;color:#385774;font-size:12px}.resource-pack-selected-user small{font-weight:400;color:#718096;overflow-wrap:anywhere}.resource-pack-user-results{margin-top:8px;background:#fff;border:1px solid #e3e8ef;border-radius:10px;max-height:200px;overflow-y:auto}.resource-pack-user-results>button{display:flex;flex-direction:column;gap:4px;width:100%;text-align:left;background:transparent;border:0;padding:12px 14px;cursor:pointer;color:#40556d}.resource-pack-user-results>button:hover,.resource-pack-user-results>button:focus-visible{background:#edf4ff;outline:none}.resource-pack-user-results strong{font-size:12px;overflow-wrap:anywhere}.resource-pack-user-results small{font-size:11px;color:#76849a;overflow-wrap:anywhere}.resource-pack-user-results p{font-size:12px;padding:12px;color:#718096}
#resource-pack-dialog{width:min(740px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:0;border:0;border-radius:20px;background:#fff;color:#1f2937;box-shadow:0 24px 80px #1f304233;overflow:hidden}#resource-pack-dialog::backdrop{background:#16253970;backdrop-filter:blur(4px)}.resource-pack-grant-form{display:flex;flex-direction:column;max-height:calc(100dvh - 40px)}.resource-pack-grant-form>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:24px 28px;border-bottom:1px solid #eff2f6;background:#fff;flex-shrink:0}.resource-pack-grant-form>header span{font-size:10px;letter-spacing:.04em;color:#6483a5}.resource-pack-grant-form h2{font-size:22px;margin:7px 0 0;color:#223b55}.resource-pack-grant-content{overflow-y:auto;min-height:0;padding:24px 28px;overscroll-behavior:contain}.resource-pack-grant-form fieldset{padding:0;margin:0;border:0;display:grid;gap:22px;min-width:0}.resource-pack-grant-form label{font-size:12px;color:#526174;font-weight:600;display:grid;gap:8px}.resource-pack-grant-form input:not([type=checkbox]),.resource-pack-grant-form select,.resource-pack-filter input{width:100%;box-sizing:border-box;min-width:0;border:1px solid #dfe6ee;border-radius:9px;padding:11px 12px;background:#fff;color:#273d56;font:inherit;font-size:13px;line-height:1.4}.resource-pack-grant-form input:focus,.resource-pack-grant-form select:focus,.resource-pack-filter input:focus{outline:none;border-color:#75a3d7;box-shadow:0 0 0 3px #2a77ce15}.resource-pack-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.resource-pack-grant-form label>small,.resource-pack-help{font-size:11px;line-height:1.7;color:#8490a0;font-weight:400;margin:0}.resource-pack-scope-editors{display:grid;gap:12px}.resource-pack-scope-editors>details{border:1px solid #e5eaf1;border-radius:10px;min-width:0}.resource-pack-scope-editors summary{cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px;font-size:12px;list-style:none}.resource-pack-scope-editors summary:after{content:'⌄';font-size:14px;color:#7f8da0}.resource-pack-scope-editors details[open] summary:after{transform:rotate(180deg)}.resource-pack-scope-editors summary>span{margin-left:auto;color:#7b8b9c;font-size:11px}.resource-pack-scope-controls{display:flex;align-items:center;gap:12px;padding:0 14px 12px}.resource-pack-scope-controls .text-button{font-size:11px;white-space:nowrap}.resource-pack-choice-list{max-height:220px;overflow-y:auto;padding:0 14px 10px}.resource-pack-choice-list>p{font-size:12px;color:#7a8a9c}.resource-pack-grant-form .resource-pack-choice{display:flex;align-items:center;gap:10px;padding:10px 4px;cursor:pointer}.resource-pack-choice input{flex-shrink:0;width:16px;height:16px;accent-color:#3979bb}.resource-pack-choice>span{display:grid;gap:3px;min-width:0}.resource-pack-choice strong{font-size:12px;overflow-wrap:anywhere}.resource-pack-choice small{font-size:10px;font-weight:400;color:#8b97a5;overflow-wrap:anywhere}.resource-pack-choice em{font-size:10px;font-style:normal;color:#8a929c;margin-left:auto}.resource-pack-grant-form>footer{display:flex;justify-content:flex-end;gap:10px;padding:18px 28px;background:#fff;border-top:1px solid #eff2f6;flex-shrink:0}.resource-pack-toolbar button,.resource-pack-grant-form button,.resource-pack-pagination button{cursor:pointer}.resource-pack-grant-form button:disabled,.resource-pack-pagination button:disabled{cursor:default;opacity:.55}
@media(max-width:640px){.resource-pack-heading{align-items:flex-start;flex-direction:column}.resource-pack-toolbar{width:100%}.resource-pack-toolbar button{flex:1}.resource-pack-rules{padding:16px}.resource-pack-grid{gap:16px}.resource-pack-card{padding:20px}.resource-pack-remaining>strong{font-size:26px}#resource-pack-dialog{width:100%;max-width:100%;height:100dvh;max-height:100dvh;border-radius:0;margin:0}.resource-pack-grant-form{height:100%;max-height:100dvh}.resource-pack-grant-form>header{padding:18px 20px}.resource-pack-grant-content{padding:20px}.resource-pack-grant-form>footer{padding:14px 20px max(14px,env(safe-area-inset-bottom))}.resource-pack-form-grid{grid-template-columns:1fr}.resource-pack-grant-form fieldset{gap:18px}.resource-pack-user-search{gap:6px}.resource-pack-pagination{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.resource-pack-progress i{transition:none}}
#resource-pack-dialog{border:1px solid #e5e7eb;border-radius:16px;color:#171717;box-shadow:0 24px 70px -20px rgba(15,23,42,.3)}
#resource-pack-dialog::backdrop{background:rgba(15,23,42,.28);backdrop-filter:blur(4px)}
.resource-pack-grant-form>header{padding:22px 24px;border-bottom-color:#ededed}
.resource-pack-grant-form>header span{color:#8a8a8a}
.resource-pack-grant-form h2{color:#171717;font-size:20px;font-weight:650;letter-spacing:-.02em}
.resource-pack-grant-content{padding:22px 24px}
.resource-pack-grant-form label{color:#525252}
.resource-pack-grant-form input:not([type=checkbox]),.resource-pack-grant-form select,.resource-pack-filter input{border-color:#dfe3e8;border-radius:9px;color:#171717}
.resource-pack-grant-form input:focus,.resource-pack-grant-form select:focus,.resource-pack-filter input:focus{border-color:#a3a3a3;box-shadow:0 0 0 3px rgba(15,23,42,.07)}
.resource-pack-scope-editors>details{border-color:#e5e7eb}
.resource-pack-grant-form>footer{padding:16px 24px;border-top-color:#ededed}
.resource-pack-user-results>button:hover,.resource-pack-user-results>button:focus-visible{background:#f5f5f5}
@media(max-width:640px){#resource-pack-dialog{border:0;border-radius:0}.resource-pack-grant-form>header{padding:18px 20px}.resource-pack-grant-content{padding:20px}.resource-pack-grant-form>footer{padding:14px 20px max(14px,env(safe-area-inset-bottom))}}
