.card-allocation-editor{min-width:0}.card-allocation-editor .modal-head{gap:12px;align-items:flex-start}.card-allocation-editor h2{line-height:1.4;overflow-wrap:anywhere}.card-allocation-intro{font-size:15px;line-height:1.7;color:var(--muted);margin:8px 0 16px}.card-allocation-groups{display:grid;gap:14px}.card-allocation-group{min-width:0;border:1px solid var(--line);border-radius:10px;padding:13px;margin:0}.card-allocation-group>legend{padding:0 5px;font-size:17px;font-weight:600;line-height:1.5;max-width:100%;overflow-wrap:anywhere}.card-allocation-meta{font-size:14px;line-height:1.7;color:var(--muted);margin:0 0 10px;overflow-wrap:anywhere}.card-allocation-source{border-top:1px solid var(--line);padding-top:12px;margin-top:12px;min-width:0}.card-allocation-source:first-of-type{margin-top:0}.card-allocation-source-head{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:5px 12px}.card-allocation-source-head strong{font-size:14px;line-height:1.6;overflow-wrap:anywhere;min-width:0}.card-allocation-source-head span{font-size:15px;line-height:1.6}.card-allocation-count{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0;min-width:0}.card-allocation-count>span{font-size:16px;line-height:1.5;min-width:0}.card-allocation-count input{width:92px;min-width:72px;min-height:48px;flex-shrink:0;font-size:16px;text-align:center}.card-allocation-quantities{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px}.card-allocation-quantity{display:block;min-width:0}.card-allocation-quantity>span{display:block;font-size:15px;line-height:1.5;margin-bottom:5px}.card-allocation-quantity input{display:block;width:100%;min-width:0;min-height:48px;font-size:16px}.card-allocation-balance{font-size:14px;line-height:1.7;color:var(--muted);margin:9px 0 0;overflow-wrap:anywhere}.card-allocation-summary{margin:16px 0;padding:12px;border:1px solid var(--line);border-radius:8px;font-size:16px;line-height:1.6;overflow-wrap:anywhere}.card-allocation-summary.is-invalid{color:#b42318;border-color:#ecc8bf;background:#fff4f1}.card-allocation-summary.is-valid{color:#16724b;border-color:#b8dfc9;background:#eaf7f0}.card-allocation-notice{font-size:15px;line-height:1.7;margin:12px 0;padding:11px 12px;border-radius:8px;background:#edf3ff;color:#31517e;overflow-wrap:anywhere}.card-allocation-editor .modal-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end;padding-bottom:max(4px,env(safe-area-inset-bottom))}.card-allocation-editor .modal-actions>button,.card-allocation-editor .card-allocation-result-actions>button{min-height:48px;max-width:100%;font-size:16px;line-height:1.5;white-space:nowrap;padding:10px 14px}.card-allocation-result-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.card-allocation-result{font-size:15px;line-height:1.7;overflow-wrap:anywhere}.card-allocation-result ul{padding-left:20px}.card-allocation-result li{margin:7px 0}.card-allocation-editor [data-error]{overflow-wrap:anywhere}.card-allocation-editor input:disabled{opacity:.8}.card-allocation-loading{font-size:16px;line-height:1.7}
@media(max-width:420px){.card-allocation-group{padding:11px}.card-allocation-quantities{grid-template-columns:repeat(2,minmax(0,1fr))}.card-allocation-editor .modal-actions>button{flex:1 0 auto}.card-allocation-result-actions>button{flex:1 0 auto}.card-allocation-group>legend{font-size:16px}}
@media(max-width:340px){.card-allocation-quantities{grid-template-columns:minmax(0,1fr)}.card-allocation-editor .modal-actions>button,.card-allocation-result-actions>button{flex-basis:100%}}
.card-allocation-choice{display:flex;align-items:center;gap:8px;min-width:0;min-height:44px}.card-allocation-choice input[type=checkbox]{width:22px;min-width:22px;height:22px;min-height:22px;margin:0;padding:0;accent-color:var(--teal)}.card-allocation-entry{min-height:48px;white-space:nowrap;font-size:16px;line-height:1.5}.card-generations-batch-actions>.card-allocation-entry,#main .card-generation-actions>.card-allocation-entry{grid-column:1/-1;width:100%;flex-basis:100%}.intake-release-history .card-allocation-entry{display:block;width:100%;margin-top:10px}
.card-allocation-history{margin:8px 0 16px;padding:10px 12px;border:1px solid var(--line);border-radius:8px}
.card-allocation-history summary{cursor:pointer;font-weight:600;min-height:30px}
.card-allocation-history ul{list-style:none;padding:0;margin:0}
.card-allocation-history li{display:flex;align-items:center;justify-content:space-between;gap:8px 12px;flex-wrap:wrap;padding:10px 0;border-top:1px solid var(--line)}
.card-allocation-history li>div{min-width:0}
.card-allocation-history small{display:block;overflow-wrap:anywhere;color:var(--muted)}
.card-allocation-editor [data-allocation-reverse]{min-height:44px;white-space:nowrap}
@media(max-width:760px){
  #action-dialog:has(.card-allocation-editor){overflow:hidden;padding:12px}
  #action-dialog:has(.card-allocation-editor) #dialog-content{display:flex;flex-direction:column;max-height:calc(100vh - 46px);max-height:calc(var(--mobile-viewport-height,100dvh) - 46px)}
  .card-allocation-editor,.card-allocation-editor form{display:flex;flex-direction:column;min-height:0}
  .card-allocation-editor .modal-head{flex:none;margin-bottom:6px}
  .card-allocation-editor .modal-head h2{font-size:20px}
  .card-allocation-scroll{min-height:0;overflow-y:auto;overscroll-behavior:contain;scroll-padding:10px}
  .card-allocation-editor .modal-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));flex:none;gap:6px;margin-top:6px;padding-top:6px;border-top:1px solid var(--line)}
  .card-allocation-editor .modal-actions>button{width:100%;min-width:0;min-height:44px;padding:7px 4px;font-size:16px}
  .card-allocation-editor .modal-actions>button[type=submit]{grid-column:1/-1;grid-row:1}
}
