.integration-notice{border:1px solid #756239;background:#342d1e;color:#d9c082;border-radius:6px;padding:10px 14px;font-size:11px;margin-bottom:20px}.runeselect{display:flex;align-items:center;gap:8px;width:100%;text-align:left;margin-top:12px}.runeselect img{width:34px;height:34px;object-fit:contain}.runeselect img.sub{width:23px;height:23px}.runeselect b{font-size:11px;display:block}.runeselect small{font-size:10px;color:var(--muted)}.runeselect>span:last-child{margin-left:auto}.runes{border:0;background:none;padding:0;display:flex;align-items:center;gap:4px}.runes img{width:31px;height:31px;object-fit:contain}.runes img.sub{width:21px;height:21px}.rowcontent{min-width:0;flex:1}.buildline{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.linearrow.row .items{width:auto;flex:1 1 200px;align-self:auto;align-content:start}.linearrow.row .rowchamp{align-self:flex-start}.linearrow.row .rowcontent .rowspells{flex-shrink:0;align-self:auto}.note{display:flex;gap:7px;align-items:baseline;margin-top:12px;border:0;padding:0;background:none;text-align:left;color:var(--muted);font-size:11px;line-height:1.8;width:100%}.note span{flex:none;font-size:8px;color:var(--soft);letter-spacing:1px}.rift .note span{color:#c0a567}.note b{font-weight:400;white-space:pre-wrap;overflow-wrap:anywhere}.note-empty{opacity:.4}.view-mode .note-empty{visibility:hidden}.hide-notes .note{display:none!important}.hide-runes .runes{display:none!important}.linearrow.row{position:relative}.show-rune-details .linearrow.row .items{flex-basis:100%;margin-top:7px}.sheet:is([data-columns="2"],[data-columns="3"]) .row{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:var(--rune-header-height,48px) var(--items-height,76px) var(--memo-height,40px);row-gap:13px;align-content:start;padding:20px 0}.sheet:is([data-columns="2"],[data-columns="3"]) .identity{position:absolute;left:0;top:20px;width:46px!important;min-width:0!important;height:46px;min-height:0}.sheet:is([data-columns="2"],[data-columns="3"]) .identity img{width:42px!important;height:42px!important}.sheet:is([data-columns="2"],[data-columns="3"]) .scenariolabel{font-size:10px;min-height:42px;padding:0;line-height:1.5}.sheet:is([data-columns="2"],[data-columns="3"]) .rowcontent,.sheet:is([data-columns="2"],[data-columns="3"]) .buildline{display:contents}.sheet:is([data-columns="2"],[data-columns="3"]) .rowspells{grid-column:1;grid-row:1;margin-left:52px;flex-direction:row;height:30px;width:max-content;align-self:start;margin-top:6px;padding-right:7px;gap:3px}.sheet:is([data-columns="2"],[data-columns="3"]) .rowspells .spellslot{width:19px;height:19px;flex-basis:19px}.sheet:is([data-columns="2"],[data-columns="3"]) .runes{grid-column:1;grid-row:1;margin-left:110px;align-self:start;height:38px}.sheet:is([data-columns="2"],[data-columns="3"]) .runes img{width:25px;height:25px}.sheet:is([data-columns="2"],[data-columns="3"]) .items{grid-column:1;grid-row:2;align-self:start!important;min-height:0;margin:0!important;flex:none;gap:6px}.sheet:is([data-columns="2"],[data-columns="3"]) .buildstep{align-self:start;flex-basis:30px;width:30px;margin:5px 0}.sheet:is([data-columns="2"],[data-columns="3"]) .slot{width:30px;height:30px;max-width:30px}.sheet:is([data-columns="2"],[data-columns="3"]) .choice-step{width:max-content;flex:0 1 auto;margin:0}.sheet:is([data-columns="2"],[data-columns="3"]) .slot.choice-slot{width:calc(var(--choice-count)*30px + (var(--choice-count) - 1)*4px + 10px);height:40px;max-height:40px;padding:4px;gap:4px}.sheet:is([data-columns="2"],[data-columns="3"]) .choiceentry{width:30px;max-width:30px;flex-basis:30px}.sheet:is([data-columns="2"],[data-columns="3"]) .items .addstep{width:30px;height:30px;flex-basis:30px;align-self:start;margin-top:5px}.sheet:is([data-columns="2"],[data-columns="3"]) .note{grid-column:1;grid-row:3;margin:0;align-self:stretch}.view-mode .integration-notice{display:none}.sheet .rune-detail-strip .detail-shards{color:var(--muted)}#noteDialog{width:420px;max-width:90vw}.sheet:is([data-columns="2"],[data-columns="3"]) .rune-detail-strip{grid-column:1;grid-row:1}.show-rune-details .sheet:not([data-columns="2"]):not([data-columns="3"]) .rowspells{flex-direction:row;width:auto}.show-rune-details .sheet:not([data-columns="2"]):not([data-columns="3"]) .row .items{flex-basis:100%}.sheet .note{align-items:baseline}
.sheet:is([data-columns="2"],[data-columns="3"]) .slot.choice-slot{max-width:100%;min-width:0}.sheet:is([data-columns="2"],[data-columns="3"]) .choice-step .choiceentry img{width:100%;height:auto;max-width:30px}.sheet:is([data-columns="2"],[data-columns="3"]) .row .rowtools{grid-column:1;grid-row:1;align-self:start;justify-self:end}
/* Align spell and rune images on the same center line. */
.preview-rune-settings .runeselect img,.preview-rune-settings .runeselect img.sub{width:32px;height:32px;flex:0 0 32px}
#sheet.sheet .linearrow .runes img,#sheet.sheet .linearrow .runes img.sub,#sheet.sheet .linearrow .rune-detail-strip img,#sheet.sheet .linearrow .rune-group:first-child .rune-group-icons img:first-child{width:25px!important;height:25px!important}
#sheet.sheet .linearrow .rune-group-icons{min-height:30px;align-items:center}
#sheet.sheet .linearrow .rowspells{align-items:center;justify-content:center}
#sheet.sheet:is([data-columns="2"],[data-columns="3"]) .linearrow .rowspells{height:30px;margin-top:0;align-self:start}
#sheet.sheet:is([data-columns="2"],[data-columns="3"]) .linearrow .rowspells .spellslot{width:22px;height:22px;flex-basis:22px}
#sheet.sheet:is([data-columns="2"],[data-columns="3"]) .linearrow .runes{height:30px;align-items:center}
#sheet.sheet:is([data-columns="2"],[data-columns="3"]) .linearrow .runes img,#sheet.sheet:is([data-columns="2"],[data-columns="3"]) .linearrow .runes img.sub,#sheet.sheet:is([data-columns="2"],[data-columns="3"]) .linearrow .rune-detail-strip img,#sheet.sheet:is([data-columns="2"],[data-columns="3"]) .linearrow .rune-group:first-child .rune-group-icons img:first-child{width:22px!important;height:22px!important}
#sheet.sheet:is([data-columns="2"],[data-columns="3"]) .linearrow .rune-group-icons{min-height:30px;align-items:center}
#sheet.sheet .linearrow .rowspells .spellslot{width:27px;height:27px;flex-basis:27px}
#sheet.sheet .linearrow .rowspells .spellslot img{width:25px!important;height:25px!important;max-width:none}
#sheet.sheet:is([data-columns="2"],[data-columns="3"]) .linearrow .rowspells .spellslot{width:24px;height:24px;flex-basis:24px}
#sheet.sheet:is([data-columns="2"],[data-columns="3"]) .linearrow .rowspells .spellslot img{width:22px!important;height:22px!important}
.preview-rune-settings .runeselect img,.preview-rune-settings .runeselect img.sub{width:30px;height:30px;flex-basis:30px}
#sheet.sheet .linearrow .rowspells{border-right:0!important}
#sheet.sheet .linearrow .rune-groups-edit{column-gap:14px!important;row-gap:5px}
#sheet.sheet .linearrow .buildline{column-gap:14px}
#sheet.sheet:is([data-columns="2"],[data-columns="3"]) .linearrow .runes,#sheet.sheet:is([data-columns="2"],[data-columns="3"]) .linearrow .buildline>.rune-detail-strip{margin-left:122px}
#sheet.sheet:is([data-columns="2"],[data-columns="3"]) .linearrow .rune-groups-edit{flex-wrap:wrap}
#sheet.sheet:is([data-columns="2"],[data-columns="3"]) .linearrow.row{padding:20px 0;row-gap:14px;align-content:start;box-sizing:border-box}
#sheet.sheet:is([data-columns="2"],[data-columns="3"]) .linearrow .note{height:auto!important;align-self:start}
#sheet.sheet .linearrow.row{padding-top:26px;padding-bottom:26px}
#sheet.sheet:is([data-columns="2"],[data-columns="3"]) .linearrow.row{padding-top:26px;padding-bottom:26px}
#sheet.sheet:is([data-columns="2"],[data-columns="3"]) .linearrow.row .identity{top:26px}
#sheet.sheet .linearrow.row{column-gap:20px}
#sheet.sheet .linearrow .buildline{column-gap:10px}
#sheet.sheet .linearrow .rowspells{padding-right:0}
#sheet.sheet:is([data-columns="2"],[data-columns="3"]) .linearrow .rowspells{margin-left:64px;padding-right:0}
#sheet.sheet:is([data-columns="2"],[data-columns="3"]) .linearrow .runes,#sheet.sheet:is([data-columns="2"],[data-columns="3"]) .linearrow .buildline>.rune-detail-strip{margin-left:126px}
/* Identity > spell/rune > primary/secondary spacing hierarchy. */
#sheet.sheet .linearrow.row{column-gap:20px}
#sheet.sheet .linearrow .buildline{column-gap:12px}
#sheet.sheet .linearrow .rune-groups-edit{column-gap:6px!important}
#sheet.sheet .linearrow .runes{gap:6px}
#sheet.sheet:is([data-columns="2"],[data-columns="3"]) .linearrow .rowspells{margin-left:66px}
#sheet.sheet:is([data-columns="2"],[data-columns="3"]) .linearrow .runes,#sheet.sheet:is([data-columns="2"],[data-columns="3"]) .linearrow .buildline>.rune-detail-strip{margin-left:129px}
#sheet.sheet[data-columns="1"] .linearrow.row .rowchamp:not(.scenarioidentity){align-self:center}
#sheet.sheet[data-columns="1"] .linearrow.row .rowchamp.scenarioidentity{align-self:center}
#sheet.sheet[data-columns="3"] .linearrows{padding-inline:16px;box-sizing:border-box}
@media(max-width:760px){#sheet.sheet[data-columns="3"] .linearrows{padding-inline:10px}}
#sheet.sheet[data-columns="3"] .linearrows{padding-inline:28px}
.integration-density{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 16px;border-bottom:1px solid var(--line);font-size:10px;color:var(--muted)}.integration-density button{font-size:10px;padding:5px 8px}.integration-density button.active{border-color:var(--soft);color:var(--soft)}.view-mode .integration-density{display:none}
#sheet.sheet[data-columns="2"] .linearrows{padding-inline:28px;box-sizing:border-box}
#sheet.sheet .linearrow .runes{justify-self:start;width:max-content;max-width:max-content;flex:0 0 auto}

#sheet .note b{min-width:0;overflow-wrap:anywhere}#noteDialog textarea{min-height:180px;max-height:50vh;resize:vertical}
