#spell-fx-dialog{width:min(860px,calc(100vw - 32px));max-height:90vh;box-sizing:border-box;overflow:auto;background:#211d22;color:var(--ink);border:1px solid #67505d;border-radius:14px;padding:24px}
#spell-fx-dialog::backdrop{background:#09080acc;backdrop-filter:blur(3px)}
.spell-fx-filters{display:grid;grid-template-columns:1fr 1fr;gap:16px}
#spell-fx-dialog input,#spell-fx-dialog select,#spell-fx-design input,#spell-fx-design textarea{box-sizing:border-box;min-width:0;max-width:100%}
#spell-fx-abilities{max-height:46vh;overflow:auto;margin:16px 0;border-top:1px solid #67505d;border-bottom:1px solid #67505d}
.spell-fx-choice{display:flex;align-items:flex-start;gap:12px;padding:12px 4px;border-bottom:1px solid #40333b;cursor:pointer;margin:0}
.spell-fx-choice input,.spell-fx-check input{width:auto!important;flex:none;margin:3px 0}
.spell-fx-choice span{min-width:0;overflow-wrap:anywhere}.spell-fx-choice small{display:block;margin-top:4px;color:var(--muted)}
.spell-fx-check{display:flex;align-items:center;gap:10px;margin:12px 0}
.spell-fx-palette{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
#spell-fx-design{margin-top:18px;border-top:1px solid #67505d;padding-top:14px}#spell-fx-design summary{font-weight:700;cursor:pointer}#spell-fx-design textarea{min-height:90px}
#spell-fx-design [aria-invalid=true]{border-color:#ff708f;outline:1px solid #ff708f}
#spell-fx-dialog .checkout-footer{position:sticky;bottom:-24px;background:#211d22;padding:16px 0;margin-bottom:-8px}
@media(max-width:600px){#spell-fx-dialog{padding:16px}.spell-fx-filters{grid-template-columns:1fr;gap:8px}.spell-fx-palette{grid-template-columns:1fr}#spell-fx-dialog .checkout-footer{bottom:-16px;flex-wrap:wrap}}
