.spell-info{--si-cost:#986400;--si-time:#087889;--si-duration:#267640;--si-range:#245fa3;--si-area:#147566;--si-resist:#b03745;--si-ritual:#94528b;--si-recharge:#97511c;line-height:1.55;min-width:0;overflow-wrap:anywhere}
/* A casting sequence of ruled lines, not a card for every statistic. */
.spell-info h3{font-size:1rem;margin:.55rem 0 .25rem}.spell-info h4{font-size:.82rem;margin:.5rem 0 .2rem}
.spell-info .spell-info-rules{font:13px/1.4 var(--sans,system-ui,sans-serif)}
.spell-info .spell-info-meta,.spell-info .spell-info-hint{font-size:11.5px;opacity:.8;margin:3px 0 6px}
.spell-info .book-casting-level,.spell-info .book-spell-access{padding:0;margin:5px 0;border:0;font:inherit}.spell-info .book-casting-level p{display:inline;margin:0}.spell-info .book-spell-access summary{cursor:pointer;font-weight:600}.spell-info .book-spell-access p{margin:4px 0}
.spell-info .spell-info-step{display:grid;grid-template-columns:76px minmax(0,1fr);gap:8px;border-top:1px solid #8884;padding:5px 0;margin:0}
.spell-info .spell-info-step>h4{margin:1px 0;font:700 11px/1.4 var(--sans,system-ui,sans-serif);color:inherit}
.spell-info-facts{display:flex;flex-wrap:wrap;align-content:start;gap:3px 16px;margin:0;min-width:0}
.spell-info-facts>div{--accent:currentColor;min-width:0;max-width:100%;flex:1 1 auto}
.spell-info-facts :is([data-fact=ritual],[data-fact=range],[data-fact=area],[data-fact=base],[data-fact=roll]){flex-basis:100%}
.spell-info-facts dt,.spell-info-facts dd{display:inline;margin:0;font-size:inherit;line-height:inherit;white-space:normal}
.spell-info-facts dt{color:var(--accent);font-weight:650}
.spell-info [data-casting-kind=cost]{--accent:var(--si-cost)}.spell-info [data-casting-kind=time]{--accent:var(--si-time)}.spell-info [data-casting-kind=duration]{--accent:var(--si-duration)}.spell-info [data-casting-kind=range]{--accent:var(--si-range)}.spell-info [data-casting-kind=area]{--accent:var(--si-area)}.spell-info [data-casting-kind=resist]{--accent:var(--si-resist)}.spell-info [data-casting-kind=ritual]{--accent:var(--si-ritual)}.spell-info [data-casting-kind=recharge]{--accent:var(--si-recharge)}
.spell-info-inputs{display:flex;flex-wrap:wrap;gap:6px 10px;border:0;padding:0;min-width:0;margin:6px 0}.spell-info-inputs legend{font-weight:650;padding:0;font-size:12px}
.spell-info-inputs label{display:flex;flex:1 1 130px;flex-direction:column;gap:3px;max-width:100%;font-size:11.5px}.spell-info-inputs input,.spell-info-inputs select{box-sizing:border-box;width:100%;min-width:0;min-height:32px;padding:4px 6px;color:inherit;background:transparent;border:1px solid #8889;border-radius:3px;font:inherit}.spell-info-inputs option{color:#20242b;background:#fff}
.spell-info .spell-info-adjust{margin:3px 0;border:0;padding:0;background:none;box-shadow:none}.spell-info .spell-info-adjust>summary{padding:5px 0;min-height:28px;box-sizing:border-box;font:600 12px/1.5 var(--sans,system-ui,sans-serif);color:var(--si-range);cursor:pointer}.spell-info-adjust .spell-info-inputs legend{display:none}
.spell-info-workings,.spell-info-conditions{padding-left:16px;margin:5px 0;font-size:12px}.spell-info li{margin:2px 0}
.spell-info-details{border-top:1px solid #8885;margin-top:8px;padding-top:3px}.spell-info-details .book-entry{margin:0 0 .7rem}.spell-info-details .book-entry h3{font-size:1rem}.spell-info-details p{white-space:normal;margin:.4rem 0}
.spell-info button{font:inherit;padding:7px 12px;margin:5px;border:1px solid #8888;border-radius:4px;cursor:pointer;color:inherit;background:transparent}.spell-info :focus-visible{outline:2px solid var(--si-range);outline-offset:2px}
body[data-sheet-ui]:not(.light) .spell-info{--si-cost:#f0c27b;--si-time:#86d8e3;--si-duration:#a4d795;--si-range:#9bc6ff;--si-area:#8dd6c2;--si-resist:#ffa5a6;--si-ritual:#e1afe0;--si-recharge:#edb594}
@media(max-width:480px){.spell-info .spell-info-step{grid-template-columns:1fr;gap:2px}.spell-info .spell-info-step>h4{font-size:11px}.spell-info-facts{gap:3px 12px}}
@media print{.spell-info-inputs,.spell-info-adjust,.spell-info button{display:none}.spell-info-facts>div{break-inside:avoid}.spell-info-details{break-before:auto}}
