/* Only reserve the summoner-spell column when it is present. */
#sheet.sheet.no-spells:is([data-columns="2"],[data-columns="3"]) .linearrow .runes,
#sheet.sheet.no-spells:is([data-columns="2"],[data-columns="3"]) .linearrow .buildline>.rune-detail-strip{margin-left:66px}
/* A note by itself keeps champion + items on the original shared line. */
#sheet.notes-only:is([data-columns="2"],[data-columns="3"]) .linearrow.row{display:grid;grid-template-columns:54px minmax(0,1fr);grid-template-rows:auto auto;gap:12px 18px;align-content:start;position:relative;padding:26px 0}
#sheet.notes-only:is([data-columns="2"],[data-columns="3"]) .rowcontent,
#sheet.notes-only:is([data-columns="2"],[data-columns="3"]) .buildline{display:contents}
#sheet.notes-only:is([data-columns="2"],[data-columns="3"]) .rowchamp{grid-column:1;grid-row:1;position:static;align-self:center;width:54px;min-width:0;margin:0}
#sheet.notes-only:is([data-columns="2"],[data-columns="3"]) .items{grid-column:2;grid-row:1;width:100%;min-width:0;align-self:center;align-content:start;flex:none;margin:0}
#sheet.notes-only:is([data-columns="2"],[data-columns="3"]) .note{grid-column:2;grid-row:2;align-self:start;margin:0;height:auto!important}
#sheet.notes-only:is([data-columns="2"],[data-columns="3"]):has(.textrow) .linearrow.row{grid-template-columns:104px minmax(0,1fr)}
#sheet.notes-only:is([data-columns="2"],[data-columns="3"]):has(.textrow) .rowchamp{width:104px}
#sheet.notes-only .note[hidden]{display:none!important}
#sheet.notes-only[data-columns="1"] .rowchamp{align-self:center}
/* Compact the original build row at three columns, with or without notes. */
#sheet[data-columns="3"]:not(.sheet) .linearrow .build{gap:6px 5px}
#sheet[data-columns="3"]:not(.sheet) .linearrow .buildstep{width:28px;flex:0 0 28px;margin:5px 0;padding-top:0;align-self:flex-start}
#sheet[data-columns="3"]:not(.sheet) .linearrow .slot{width:28px;height:28px;max-width:28px}
#sheet[data-columns="3"]:not(.sheet) .linearrow .buildstep.choice-step{width:max-content;flex:0 1 auto;margin:0}
#sheet[data-columns="3"]:not(.sheet) .linearrow .slot.choice-slot{width:calc(var(--choice-count)*28px + (var(--choice-count) - 1)*4px + 10px);max-width:100%;height:38px;max-height:38px;padding:4px;gap:4px}
#sheet[data-columns="3"]:not(.sheet) .linearrow .choiceentry{width:28px;max-width:28px;flex-basis:28px}
#sheet[data-columns="3"]:not(.sheet) .linearrow .choiceentry img{width:100%;max-width:28px;height:auto}
#sheet[data-columns="3"]:not(.sheet) .linearrow .build .addstep{width:28px;height:28px;min-height:28px;max-width:28px;flex:0 0 28px;margin-top:5px;align-self:flex-start}
#sheet.notes-only[data-columns="3"] .linearrow.row .note{grid-column:1/-1}
#sheet.notes-only[data-columns="2"] .linearrow.row .note{grid-column:1/-1}
/* Keep column content edges consistent across optional displays. */
#sheet:is([data-columns="2"],[data-columns="3"]) .linearrows{padding-inline:28px;box-sizing:border-box}

#sheet .sheetfoot{display:flex;justify-content:space-between;align-items:center;gap:6px 12px;flex-wrap:wrap}
#sheet .sheetmeta{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#sheet .sheetmeta>span{line-height:1.5}
#sheet .sheetcredit{font-size:9px;line-height:1.5;text-align:right;margin:0 0 0 auto;font-weight:400;letter-spacing:.1px;white-space:nowrap}
#sheet .sheetcredit a{color:var(--muted,#9097a4);text-decoration:none;opacity:.65}
#sheet .sheetcredit a:hover{opacity:1;color:var(--soft,#c8aa6e)}
#sheet.rift .sheetcredit a{color:#c8aa6e}
