Back to Sheets
Sheet
Character Sheet
System: Pathfinder Second Edition
Officialsoul/pf2e-character-sheet PublicDefault
<!-- Pathfinder 2e character sheet. Design: the approved mockup (frozen 2026-10-06). -->
<Define name="prof" params="r" formula="if(r > 0, level + 2 * r, 0)" />
<Define name="rankLetter" params="r" formula="switch(r, 1, 'T', 2, 'E', 3, 'M', 4, 'L', 'U')" />
<Define name="rankName" params="r" formula="switch(r, 1, 'Trained', 2, 'Expert', 3, 'Master', 4, 'Legendary', 'Untrained')" />
<Define name="attrName" params="k" formula="switch(k, 'str', 'Str', 'dex', 'Dex', 'con', 'Con', 'int', 'Int', 'wis', 'Wis', 'cha', 'Cha', '')" />
<Define name="skillAttr" params="k"
formula="if(any(list('acrobatics', 'stealth', 'thievery'), . == k), 'dex', if(k == 'athletics', 'str', if(any(list('arcana', 'crafting', 'occultism', 'society'), . == k), 'int', if(any(list('medicine', 'nature', 'religion', 'survival'), . == k), 'wis', 'cha'))))" />
<Define name="saveAttr" params="k" formula="switch(k, 'fortitude', 'con', 'reflex', 'dex', 'wis')" />
<!-- Armor's check penalty applies to Str and Dex skills unless the character meets its Strength. -->
<Define name="checkPenalty" params="k"
formula="if((skillAttr(k) == 'str' or skillAttr(k) == 'dex') and coalesce(armor.armor.strength, 0) > attributes.str, coalesce(armor.armor.checkPenalty, 0), 0)" />
<Define name="armorRank" formula="get(defenses, coalesce(armor.armor.category, 'unarmored'))" />
<Define name="maxHp" formula="coalesce(ancestry.hp, 0) + (coalesce(class.hp, 0) + attributes.con) * level" />
<Define name="perceptionMod" formula="attributes.wis + prof(perception)" />
<Define name="skillMod" params="k" formula="get(attributes, skillAttr(k)) + prof(get(skills, k)) + checkPenalty(k)" />
<Define name="initMod" formula="if(initiative.roll == 'perception', perceptionMod(), skillMod(initiative.roll)) + initiative.bonus" />
<Define name="keyMod" formula="coalesce(get(attributes, keyAttribute), 0)" />
<Define name="spellMod" formula="coalesce(get(attributes, coalesce(spellcasting.attribute, keyAttribute)), 0) + prof(spellcasting.rank)" />
<Define name="glyph" params="a"
formula="switch(a, '1', '◆', '2', '◆◆', '3', '◆◆◆', '1 to 3', '◆ to ◆◆◆', '1 to 2', '◆ to ◆◆', '2 to 3', '◆◆ to ◆◆◆', 'reaction', '↺', 'free', '◇', '')" />
<Define name="hasTrait" params="traits, t" formula="any(traits, . == t)" />
<!-- Strikes: the hit modifier, the multiple attack penalty steps, and damage. Thieves add Dex to finesse melee damage. -->
<Define name="strikeHit" params="category, attr, bonus" formula="get(attributes, attr) + prof(get(attacks, coalesce(category, 'simple'))) + coalesce(bonus, 0)" />
<Define name="mapStep" params="traits" formula="if(hasTrait(traits, 'Agile'), 4, 5)" />
<Define name="damageMod" params="range, traits"
formula="if(coalesce(range, 0) > 0, if(hasTrait(traits, 'Propulsive'), floor(max(0, attributes.str) / 2), 0), if(subclass.name == 'Thief' and hasTrait(traits, 'Finesse'), max(attributes.str, attributes.dex), attributes.str))" />
<Define name="damageType" params="t" formula="switch(t, 'bludgeoning', 'B', 'piercing', 'P', 'slashing', 'S', '')" />
<Define name="sneakDice" formula="if(level >= 17, 4, if(level >= 11, 3, if(level >= 5, 2, 1)))" />
<Define name="defensesList"
formula="join(list(if(length(coalesce(resistances, list())) > 0, concat('Resist ', join(map(resistances, concat(type, ' ', value)), ', ')), ''), if(length(coalesce(weaknesses, list())) > 0, concat('Weak ', join(map(weaknesses, concat(type, ' ', value)), ', ')), ''), if(length(coalesce(immunities, list())) > 0, concat('Immune ', join(immunities, ', ')), '')), ' · ')" />
<Define name="profLabel" params="k" formula="switch(k, 'unarmed', 'Unarmed', 'simple', 'Simple', 'martial', 'Martial', 'advanced', 'Advanced', 'unarmored', 'Unarmored', 'light', 'Light', 'medium', 'Medium', 'heavy', 'Heavy', k)" />
<Define name="bulkText" params="b" formula="if(b == 0.1, 'L', if(coalesce(b, 0) == 0, '—', b))" />
<Define name="bulk" formula="sum(inventory, if(state == 'dropped', 0, quantity * coalesce(item.bulk, 0)))" />
<Sheet display="text">
<!-- Header: name, build choices, the level strip, and facts. -->
<Section class="head">
<Stack class="ident">
<Text field="name" hideLabel class="charname" />
<Stack direction="row" wrap class="refs">
<Ref field="ancestry" label="Ancestry" preview="card" class="card" />
<Ref field="heritage" label="Heritage" preview="card" filter="ancestry == /ancestry" class="card" />
<Ref field="background" label="Background" preview="card" class="card" />
<Stack direction="row" class="refgroup">
<Ref field="class" label="Class" preview="card" class="card" />
<Ref field="subclass" label="{switch(class.name, 'Rogue', 'Racket', 'Cleric', 'Doctrine', 'Subclass')}" preview="card" class="card" />
</Stack>
</Stack>
</Stack>
<Stack direction="row" class="meta">
<Number field="level" label="Level" min="1" max="20" />
<Stack class="cellv">
<Note class="label">XP</Note>
<Stack direction="row" class="per"><Number field="xp" hideLabel min="0" /><Note class="unit">/ 1000</Note></Stack>
</Stack>
<Tracker field="heroPoints" label="Hero Points" max="3" style="pips" live />
<Stack class="cellv">
<Note class="label">Speed</Note>
<Stack direction="row" class="per"><Value formula="coalesce(ancestry.speed, 25)" hideLabel /><Note class="unit">ft</Note></Stack>
</Stack>
<Value field="ancestry.size" label="Size" class="word" />
</Stack>
<Stack direction="row" wrap class="facts">
<Tags field="ancestry.traits" label="Traits" />
<Tags field="senses" label="Senses" show="not editing() and length(coalesce(senses, list())) > 0" />
<!-- In edit, entries are pills you can click into and change (Languages, Senses, Other speeds, IWR). -->
<List field="senses" label="Senses" addLabel="Add" class="pills" show="editing()">
<Text field="." hideLabel placeholder="darkvision" />
</List>
<!-- In play, other speeds are chips like the tags beside them. -->
<List field="otherSpeeds" label="Other speeds" class="speeds chiplist" show="not editing() and length(coalesce(otherSpeeds, list())) > 0">
<Value formula="concat(kind, ' ', speed, ' ft')" hideLabel class="chip20" />
</List>
<List field="otherSpeeds" label="Other speeds" addLabel="Add" class="pills" show="editing()">
<Stack direction="row" class="pill">
<Text field="kind" hideLabel placeholder="Swim" />
<Number field="speed" hideLabel min="0" />
</Stack>
</List>
<Tags field="languages" label="Languages" show="not editing()" />
<List field="languages" label="Languages" addLabel="Add" class="pills" show="editing()">
<Text field="." hideLabel placeholder="Common" />
</List>
</Stack>
</Section>
<!-- Attributes and defenses. -->
<Section title="Attributes & Defenses" class="folio">
<Stack direction="row" class="top">
<Grid cols="3" gap="sm" class="attrs">
<Stack class="box attr"><Badge class="keytag" show="keyAttribute == 'str'">Key</Badge><Number field="attributes.str" label="Str" format="signed" /></Stack>
<Stack class="box attr"><Badge class="keytag" show="keyAttribute == 'dex'">Key</Badge><Number field="attributes.dex" label="Dex" format="signed" /></Stack>
<Stack class="box attr"><Badge class="keytag" show="keyAttribute == 'con'">Key</Badge><Number field="attributes.con" label="Con" format="signed" /></Stack>
<Stack class="box attr"><Badge class="keytag" show="keyAttribute == 'int'">Key</Badge><Number field="attributes.int" label="Int" format="signed" /></Stack>
<Stack class="box attr"><Badge class="keytag" show="keyAttribute == 'wis'">Key</Badge><Number field="attributes.wis" label="Wis" format="signed" /></Stack>
<Stack class="box attr"><Badge class="keytag" show="keyAttribute == 'cha'">Key</Badge><Number field="attributes.cha" label="Cha" format="signed" /></Stack>
</Grid>
<Stack class="defwrap">
<Stack direction="row" class="defs">
<Stack class="box ac">
<Value label="Armor Class">
<Part label="Base" formula="10" />
<Part label="Dex{if(armor.armor.dexCap != null, concat(' (cap ', signed(armor.armor.dexCap), ')'), '')}" formula="min(attributes.dex, coalesce(armor.armor.dexCap, 99))" />
<Part label="{rankName(armorRank())}" formula="prof(armorRank())" />
<Part label="Armor" formula="armor.armor.acBonus" />
<Part label="Shield raised" formula="shield.shield.acBonus" show="shieldRaised" />
</Value>
<!-- A raised shield shows beside the armor, as in the mockup. -->
<Stack direction="row" class="subline">
<Value formula="coalesce(armor.name, 'No armor')" hideLabel class="sub" />
<Value formula="concat('· +', shield.shield.acBonus, ' shield')" hideLabel class="up" show="shieldRaised and shield.shield.acBonus > 0" />
</Stack>
</Stack>
<Stack class="box hp">
<Stack direction="row" wrap class="hpline">
<Stack direction="row" class="now">
<Number field="hp" label="Hit Points" min="0" live />
<Value formula="concat('/ ', maxHp())" hideLabel class="max" />
</Stack>
<Stack direction="row" class="adj">
<Button label="Damage" amount live>
<Set field="hp" formula="max(0, hp - max(0, amount - tempHp))" />
<Set field="tempHp" formula="max(0, tempHp - amount)" />
</Button>
<Button label="Heal" amount live>
<Set field="hp" formula="min(maxHp(), hp + amount)" />
</Button>
</Stack>
<Number field="tempHp" label="Temp" min="0" live class="temp" />
</Stack>
<!-- Temp HP draws over the HP bar from the left, in another color. -->
<Stack class="hpbar">
<Tracker formula="hp" max="{maxHp()}" hideLabel class="meter" />
<Tracker formula="coalesce(tempHp, 0)" max="{maxHp()}" hideLabel class="meter tempbar" />
</Stack>
<Stack direction="row" wrap class="death">
<Tracker field="dying" label="Dying" max="4" style="pips" live class="bad" />
<Tracker field="wounded" label="Wounded" max="3" style="pips" live class="bad sq" />
<Tracker field="doomed" label="Doomed" max="3" style="pips" live class="bad sq" />
</Stack>
</Stack>
<Stack class="box saves">
<Note class="label">Saving Throws</Note>
<List field="saves" class="srows">
<Stack direction="row" class="srow">
<Value formula="itemLabel()" hideLabel class="name" />
<Value hideLabel format="signed">
<Part label="{attrName(saveAttr(itemKey()))}" formula="get(/attributes, saveAttr(itemKey()))" />
<Part label="{rankName(.)}" formula="prof(.)" />
<Roll name="save" label="Save" formula="d20 + value()" crit="face == 20" fumble="face == 1" />
</Value>
<Stack class="rankcell">
<Value formula="rankLetter(.)" hideLabel class="rank" show="coalesce(., 0) == 0" />
<Value formula="rankLetter(.)" hideLabel class="rank on" show=". > 0" />
<Select field="." hideLabel class="rank-sel" show="editing()" />
</Stack>
</Stack>
</List>
</Stack>
</Stack>
<Stack direction="row" wrap class="strip">
<Stack direction="row" wrap class="shieldrow" show="shield.name != null">
<Button label="◆ Raise Shield" class="raise" show="shield.name != null and not shieldRaised" live>
<Set field="shieldRaised" formula="true" />
</Button>
<Button label="◆ Shield Raised" class="raise pressed" show="shield.name != null and shieldRaised" live>
<Set field="shieldRaised" formula="false" />
</Button>
<Ref field="shield" hideLabel preview="card" class="shieldname" show="shield.name != null and not editing()" />
<Value formula="shield.name" hideLabel class="dim" show="shield.name != null and editing()" />
<Number field="shieldHp" label="HP" min="0" live class="coin" show="shield.name != null" />
<Value formula="concat('/ ', shield.shield.hp, ' (', shield.shield.brokenThreshold, ')')" hideLabel class="dim" show="shield.name != null" />
<Badge class="broken" color="error" show="shield.name != null and coalesce(shieldHp, shield.shield.hp) <= shield.shield.brokenThreshold">Broken</Badge>
</Stack>
<!-- Conditions and IWR move together, and share a line: each wraps inside itself first. -->
<Stack direction="row" class="iwrcond">
<Tags field="conditions" label="Conditions" placeholder="+ Add" live />
<Stack direction="row" wrap class="resist">
<Note class="label">IWR</Note>
<Value hideLabel class="dim" formula="'none'" show="not editing() and length(coalesce(defensesList(), '')) == 0" />
<!-- In view, each kind's entries are chips, like Conditions. -->
<Stack direction="row" class="rgroup iwrview" show="not editing() and length(coalesce(resistances, list())) > 0">
<Note>Resist</Note>
<List field="resistances" class="chiplist"><Value formula="concat(type, ' ', value)" hideLabel class="chip20" /></List>
</Stack>
<Stack direction="row" class="rgroup iwrview" show="not editing() and length(coalesce(weaknesses, list())) > 0">
<Note>Weak</Note>
<List field="weaknesses" class="chiplist"><Value formula="concat(type, ' ', value)" hideLabel class="chip20" /></List>
</Stack>
<Stack direction="row" class="rgroup iwrview" show="not editing() and length(coalesce(immunities, list())) > 0">
<Note>Immune</Note>
<Tags field="immunities" hideLabel />
</Stack>
<!-- In edit, each kind is named by its "+ Resist" button, and by a label once it has entries. -->
<Stack direction="row" class="rgroup" show="editing()">
<Note show="length(coalesce(resistances, list())) > 0">Resist</Note>
<List field="resistances" addLabel="Resist" class="pills">
<Stack direction="row" class="pill"><Text field="type" hideLabel placeholder="fire" /><Number field="value" hideLabel min="0" /></Stack>
</List>
</Stack>
<Stack direction="row" class="rgroup" show="editing()">
<Note show="length(coalesce(weaknesses, list())) > 0">Weak</Note>
<List field="weaknesses" addLabel="Weak" class="pills">
<Stack direction="row" class="pill"><Text field="type" hideLabel placeholder="cold iron" /><Number field="value" hideLabel min="0" /></Stack>
</List>
</Stack>
<Stack direction="row" class="rgroup" show="editing()">
<Note show="length(coalesce(immunities, list())) > 0">Immune</Note>
<List field="immunities" addLabel="Immune" class="pills">
<Text field="." hideLabel placeholder="poison" />
</List>
</Stack>
</Stack>
</Stack>
</Stack>
</Stack>
</Stack>
</Section>
<!-- Strikes and actions, side by side. -->
<Grid cols="2" class="pair">
<Section title="Strikes" icon="i-game-icons-crossed-swords" class="folio strikes">
<Note class="aside">MAP −5 / −10 · agile −4 / −8</Note>
<Stack direction="row" class="row th strike">
<Note></Note><Note>Weapon</Note><Note>Hit · MAP</Note><Note>Damage</Note><Note>Traits</Note>
</Stack>
<List field="strikes" addLabel="Add strike" class="rows">
<Stack direction="row" class="row strike">
<Note class="act">◆</Note>
<Stack class="cell">
<Value field="weapon.name" hideLabel preview class="name" show="not editing()" />
<Ref field="weapon" hideLabel preview filter="kind == 'weapon'" class="name" show="editing()" />
</Stack>
<Stack direction="row" class="hit">
<Value hideLabel format="signed" formula="strikeHit(weapon.weapon.category, attribute, itemBonus)">
<Part label="{attrName(attribute)}" formula="get(/attributes, attribute)" />
<Part label="{rankName(get(/attacks, coalesce(weapon.weapon.category, 'simple')))}" formula="prof(get(/attacks, coalesce(weapon.weapon.category, 'simple')))" />
<Part label="Item" formula="itemBonus" />
<Roll name="hit" label="Attack" formula="d20 + value()" crit="face == 20" fumble="face == 1" />
<FollowUp label="Damage">
<Roll label="Damage" formula="dice(concat(weapon.weapon.damageDice, weapon.weapon.damageDie)) + damageMod(weapon.weapon.range, weapon.traits)" />
</FollowUp>
<FollowUp label="Critical">
<Roll label="Critical damage" formula="2 * (dice(concat(weapon.weapon.damageDice, weapon.weapon.damageDie)) + damageMod(weapon.weapon.range, weapon.traits))" />
</FollowUp>
</Value>
<Value hideLabel format="signed" class="map" formula="strikeHit(weapon.weapon.category, attribute, itemBonus) - mapStep(weapon.traits)" show="not editing()">
<Roll label="Attack (MAP)" formula="d20 + value()" crit="face == 20" fumble="face == 1" />
</Value>
<Value hideLabel format="signed" class="map" formula="strikeHit(weapon.weapon.category, attribute, itemBonus) - 2 * mapStep(weapon.traits)" show="not editing()">
<Roll label="Attack (MAP)" formula="d20 + value()" crit="face == 20" fumble="face == 1" />
</Value>
<Select field="attribute" hideLabel class="small-sel" show="editing()" />
<Number field="itemBonus" hideLabel format="signed" class="small-num" show="editing()" />
</Stack>
<Stack direction="row" class="dmg">
<Value hideLabel formula="concat(weapon.weapon.damageDice, weapon.weapon.damageDie, if(damageMod(weapon.weapon.range, weapon.traits) != 0, signed(damageMod(weapon.weapon.range, weapon.traits)), ''), ' ', damageType(weapon.weapon.damageType))" />
<Value hideLabel class="dim" formula="concat('+', sneakDice(), 'd6 sneak')" show="/class.name == 'Rogue'" />
</Stack>
<Stack direction="row" wrap class="traits">
<!-- Traits come from the weapon; with none picked the path would be an input that writes to the reference. -->
<Tags field="weapon.traits" hideLabel class="chips" show="weapon.name != null" />
<Value field="notes" hideLabel class="dim" show="not editing() and length(coalesce(notes, '')) > 0" />
<Text field="notes" hideLabel class="note-in" show="editing()" />
</Stack>
</Stack>
</List>
</Section>
<Section title="Actions & Reactions" icon="i-game-icons-hand" class="folio acts">
<List field="actions" addLabel="Add action" class="rows">
<Stack direction="row" class="row">
<Value hideLabel class="act" formula="glyph(action.actions)" />
<!-- Feats with an action cost are actions too (the import makes them), so one picker offers both. -->
<Stack class="cell">
<Value field="action.name" hideLabel preview class="name" show="not editing()" />
<Ref field="action" hideLabel preview class="name" show="editing()" />
</Stack>
<Value field="notes" hideLabel class="dim" show="not editing() and length(coalesce(notes, '')) > 0" />
<Text field="notes" hideLabel class="note-in" show="editing()" />
</Stack>
</List>
</Section>
</Grid>
<!-- Skills and proficiencies on the left, the tabs on the right. -->
<Stack direction="row" class="mid">
<Stack class="leftcol">
<Section title="Skills" icon="i-game-icons-skills" class="folio skills">
<Value class="aside" hideLabel formula="concat('armor ', armor.armor.checkPenalty, ' on Str/Dex skills')" show="coalesce(armor.armor.checkPenalty, 0) != 0 and coalesce(armor.armor.strength, 0) > attributes.str" />
<Stack direction="row" class="row lead">
<Heading level="3">Perception</Heading>
<Note class="dim">Wis</Note>
<Stack class="rankcell">
<Value formula="rankLetter(perception)" hideLabel class="rank" show="coalesce(perception, 0) == 0" />
<Value formula="rankLetter(perception)" hideLabel class="rank on" show="perception > 0" />
<Select field="perception" hideLabel class="rank-sel" show="editing()" />
</Stack>
<Value hideLabel format="signed" formula="perceptionMod()">
<Part label="Wis" formula="attributes.wis" />
<Part label="{rankName(perception)}" formula="prof(perception)" />
<Roll label="Perception" formula="d20 + value()" crit="face == 20" fumble="face == 1" />
</Value>
</Stack>
<Stack direction="row" class="row lead init">
<Heading level="3">Initiative</Heading>
<Select field="initiative.roll" hideLabel live />
<Stack direction="row" class="kvp ibonus" show="editing()"><Note class="label">Bonus</Note><Number field="initiative.bonus" hideLabel format="signed" class="small-num" /></Stack>
<Value hideLabel format="signed" formula="initMod()">
<Part label="{if(initiative.roll == 'perception', 'Perception', 'Skill')}" formula="if(initiative.roll == 'perception', perceptionMod(), skillMod(initiative.roll))" />
<Part label="Bonus" formula="initiative.bonus" />
<Roll label="Initiative" formula="d20 + value()" crit="face == 20" fumble="face == 1" />
</Value>
</Stack>
<List field="skills" class="rows">
<Stack direction="row" class="row skill">
<Value formula="itemLabel()" hideLabel class="name" />
<Value formula="attrName(skillAttr(itemKey()))" hideLabel class="dim" />
<Stack class="rankcell">
<Value formula="rankLetter(.)" hideLabel class="rank" show="coalesce(., 0) == 0" />
<Value formula="rankLetter(.)" hideLabel class="rank on" show=". > 0" />
<Select field="." hideLabel class="rank-sel" show="editing()" />
</Stack>
<Value hideLabel format="signed" formula="skillMod(itemKey())">
<Part label="{attrName(skillAttr(itemKey()))}" formula="get(/attributes, skillAttr(itemKey()))" />
<Part label="{rankName(.)}" formula="prof(.)" />
<Part label="Armor" formula="checkPenalty(itemKey())" show="checkPenalty(itemKey()) != 0" />
<Roll label="Check" formula="d20 + value()" crit="face == 20" fumble="face == 1" />
</Value>
</Stack>
</List>
<List field="lore" addLabel="Add lore" class="rows lore">
<Stack direction="row" class="row skill">
<Text field="name" hideLabel placeholder="… Lore" class="name" />
<Note class="dim">Int</Note>
<Stack class="rankcell">
<Value formula="rankLetter(rank)" hideLabel class="rank" show="coalesce(rank, 0) == 0" />
<Value formula="rankLetter(rank)" hideLabel class="rank on" show="rank > 0" />
<Select field="rank" hideLabel class="rank-sel" show="editing()" />
</Stack>
<Value hideLabel format="signed" formula="/attributes.int + prof(rank)">
<Part label="Int" formula="/attributes.int" />
<Part label="{rankName(rank)}" formula="prof(rank)" />
<Roll label="Check" formula="d20 + value()" crit="face == 20" fumble="face == 1" />
</Value>
</Stack>
</List>
</Section>
<Section title="Proficiencies" icon="i-game-icons-diploma" class="folio profs">
<Stack direction="row" class="profrow">
<Note class="label">Attacks</Note>
<List field="attacks" class="proflist">
<Stack direction="row" class="prof">
<Stack class="rankcell">
<Value formula="rankLetter(.)" hideLabel class="rank" show="coalesce(., 0) == 0" />
<Value formula="rankLetter(.)" hideLabel class="rank on" show=". > 0" />
<Select field="." hideLabel class="rank-sel" show="editing()" />
</Stack>
<Value formula="profLabel(itemKey())" hideLabel />
</Stack>
</List>
</Stack>
<Stack direction="row" class="profrow">
<Note class="label">Defenses</Note>
<List field="defenses" class="proflist">
<Stack direction="row" class="prof">
<Stack class="rankcell">
<Value formula="rankLetter(.)" hideLabel class="rank" show="coalesce(., 0) == 0" />
<Value formula="rankLetter(.)" hideLabel class="rank on" show=". > 0" />
<Select field="." hideLabel class="rank-sel" show="editing()" />
</Stack>
<Value formula="profLabel(itemKey())" hideLabel />
</Stack>
</List>
</Stack>
</Section>
</Stack>
<Tabs class="maintabs">
<Tab label="Class" icon="i-game-icons-medal">
<Stack direction="row" wrap class="strip keyline">
<Value field="class.name" hideLabel class="strong" />
<Stack direction="row" class="kvp">
<Value label="Class DC">
<Part label="Base" formula="10" />
<Part label="Key {attrName(keyAttribute)}" formula="keyMod()" />
<Part label="{rankName(classDc)}" formula="prof(classDc)" />
</Value>
<Stack class="rankcell">
<Value formula="rankLetter(classDc)" hideLabel class="rank" show="coalesce(classDc, 0) == 0" />
<Value formula="rankLetter(classDc)" hideLabel class="rank on" show="classDc > 0" />
<Select field="classDc" hideLabel class="rank-sel" show="editing()" />
</Stack>
</Stack>
<Value label="Key attribute" formula="attrName(keyAttribute)" show="not editing()" />
<Stack direction="row" class="kvp" show="editing()"><Note class="label">Key attribute</Note><Select field="keyAttribute" hideLabel class="small-sel" /></Stack>
</Stack>
<Note class="grp">Class features</Note>
<Stack direction="row" class="row th feature">
<Note>Level</Note><Note>Feature</Note>
</Stack>
<List field="class.features" class="rows features">
<Stack direction="row" class="row feature">
<Value field="level" hideLabel class="dim" show="level <= /level" />
<Value field="level" hideLabel class="dim future" show="level > /level" />
<Value field="feature.name" hideLabel preview class="name" />
</Stack>
</List>
<Stack class="rows kv" show="/class.name == 'Rogue'">
<Note class="grp">Racket</Note>
<Stack direction="row" class="row"><Note class="label">Racket</Note><Ref field="subclass" hideLabel preview="card" /></Stack>
</Stack>
<Stack class="rows kv" show="deity.name != null or editing()">
<Note class="grp">Deity</Note>
<Stack direction="row" class="row"><Note class="label">Deity</Note><Ref field="deity" hideLabel preview="card" /></Stack>
<Stack direction="row" class="row"><Note class="label">Divine font</Note><Field field="deity.font" hideLabel /></Stack>
<Stack direction="row" class="row"><Note class="label">Sanctification</Note><Field field="deity.sanctification" hideLabel /></Stack>
<Stack direction="row" class="row"><Note class="label">Divine skill</Note><Field field="deity.skill" hideLabel /></Stack>
<Stack direction="row" class="row"><Note class="label">Favored weapon</Note><Field field="deity.favoredWeapon" hideLabel /></Stack>
<Stack direction="row" class="row"><Note class="label">Domains</Note><Field field="deity.domains" hideLabel /></Stack>
<Stack direction="row" class="row"><Note class="label">Divine attributes</Note><Field field="deity.attributes" hideLabel /></Stack>
<Stack direction="row" class="row"><Note class="label">Edicts</Note><Field field="deity.edicts" hideLabel /></Stack>
<Stack direction="row" class="row"><Note class="label">Anathema</Note><Field field="deity.anathema" hideLabel /></Stack>
</Stack>
</Tab>
<Tab label="Feats" icon="i-game-icons-stars-stack">
<Stack direction="row" class="row th feat">
<Note>Level</Note><Note></Note><Note>Feat</Note><Note>Type</Note>
</Stack>
<List field="feats" addLabel="Add feat" class="rows feats">
<Stack direction="row" class="row feat">
<Value field="level" hideLabel class="dim" show="not editing()" />
<Number field="level" hideLabel min="1" max="20" class="small-num" show="editing()" />
<Stack class="cell"><Value hideLabel class="act" formula="glyph(feat.actions)" show="glyph(feat.actions) != ''" /></Stack>
<Value field="feat.name" hideLabel preview class="name" show="not editing()" />
<Ref field="feat" hideLabel preview class="name" show="editing()" />
<Value field="category" hideLabel class="chip" show="not editing()" />
<Select field="category" hideLabel class="small-sel" show="editing()" />
</Stack>
</List>
</Tab>
<Tab label="Inventory" icon="i-game-icons-swap-bag">
<Stack direction="row" wrap class="strip">
<Stack direction="row" wrap class="bulk">
<Value label="Bulk" formula="round(bulk(), 1)" />
<Tracker formula="round(bulk(), 1)" max="{10 + attributes.str}" mark="{5 + attributes.str}" hideLabel class="bmeter" />
<Value hideLabel class="dim" formula="concat('encumbered over ', 5 + attributes.str, ' · limit ', 10 + attributes.str)" show="bulk() <= 5 + attributes.str" />
<Badge color="error" show="bulk() > 5 + attributes.str">Encumbered</Badge>
<!-- In edit, the armor and shield pickers end the first two lines, where there's room, so nothing moves. -->
<Stack direction="row" class="kvp gear" show="editing()"><Note class="label">Armor</Note><Ref field="armor" hideLabel preview="card" filter="kind == 'armor'" class="name" /></Stack>
</Stack>
<Value label="Invested" formula="concat(count(inventory, invested), ' / 10')" />
<Number field="coins.pp" formula="0" label="pp" min="0" live class="coin" />
<Number field="coins.gp" formula="0" label="gp" min="0" live class="coin" />
<Number field="coins.sp" formula="0" label="sp" min="0" live class="coin" />
<Number field="coins.cp" formula="0" label="cp" min="0" live class="coin" />
<Stack direction="row" class="kvp gear" show="editing()"><Note class="label">Shield</Note><Ref field="shield" hideLabel preview="card" filter="kind == 'shield'" class="name" /></Stack>
</Stack>
<Stack direction="row" class="row th inv">
<Note>Qty</Note><Note>Item</Note><Note>Bulk</Note><Note>Move</Note><Note class="invcol" show="any(inventory, hasTrait(item.traits, 'invested'))">Inv</Note>
</Stack>
<Stack class="rows" show="any(inventory, state == 'held')">
<Note class="grp">Held</Note>
<List field="inventory" class="rows noadd">
<Stack direction="row" class="row inv" show="state == 'held'">
<Value field="quantity" hideLabel show="not editing()" />
<Number field="quantity" hideLabel min="0" class="small-num" show="editing()" />
<Value field="item.name" hideLabel preview class="name" show="not editing()" />
<Ref field="item" hideLabel preview class="name" show="editing()" />
<Value hideLabel class="dim" formula="bulkText(item.bulk)" />
<Stack direction="row" wrap class="moves">
<Button label="Wear" live><Set field="state" formula="'worn'" /></Button>
<Button label="Stow" live><Set field="state" formula="'stowed'" /></Button>
</Stack>
<Note show="not editing() and invested and hasTrait(item.traits, 'invested')">✓</Note>
<Checkbox field="invested" hideLabel show="editing() and hasTrait(item.traits, 'invested')" />
</Stack>
</List>
</Stack>
<Stack class="rows" show="any(inventory, state == 'worn')">
<Note class="grp">Worn</Note>
<List field="inventory" class="rows noadd">
<Stack direction="row" class="row inv" show="state == 'worn'">
<Value field="quantity" hideLabel show="not editing()" />
<Number field="quantity" hideLabel min="0" class="small-num" show="editing()" />
<Value field="item.name" hideLabel preview class="name" show="not editing()" />
<Ref field="item" hideLabel preview class="name" show="editing()" />
<Value hideLabel class="dim" formula="bulkText(item.bulk)" />
<Stack direction="row" wrap class="moves">
<Button label="Hold" live><Set field="state" formula="'held'" /></Button>
<Button label="Stow" live><Set field="state" formula="'stowed'" /></Button>
</Stack>
<Note show="not editing() and invested and hasTrait(item.traits, 'invested')">✓</Note>
<Checkbox field="invested" hideLabel show="editing() and hasTrait(item.traits, 'invested')" />
</Stack>
</List>
</Stack>
<Stack class="rows" show="any(inventory, state == 'stowed')">
<Note class="grp">Stowed</Note>
<List field="inventory" class="rows noadd">
<Stack direction="row" class="row inv" show="state == 'stowed'">
<Value field="quantity" hideLabel show="not editing()" />
<Number field="quantity" hideLabel min="0" class="small-num" show="editing()" />
<Value field="item.name" hideLabel preview class="name" show="not editing()" />
<Ref field="item" hideLabel preview class="name" show="editing()" />
<Value hideLabel class="dim" formula="bulkText(item.bulk)" />
<Stack direction="row" wrap class="moves">
<Button label="Hold" live><Set field="state" formula="'held'" /></Button>
<Button label="Wear" live><Set field="state" formula="'worn'" /></Button>
</Stack>
<Note show="not editing() and invested and hasTrait(item.traits, 'invested')">✓</Note>
<Checkbox field="invested" hideLabel show="editing() and hasTrait(item.traits, 'invested')" />
</Stack>
</List>
</Stack>
<!-- Only its Add button shows: new items are worn (the schema's default) and join that group. -->
<List field="inventory" addLabel="Add item" class="rows addonly" show="editing()">
<Note class="none" show="false"></Note>
</List>
</Tab>
<Tab label="Spells" icon="i-game-icons-spell-book" show="length(coalesce(spellcasting.tradition, '')) > 0 or editing()">
<Stack direction="row" wrap class="strip keyline">
<Stack direction="row" class="trad" show="not editing()"><Value field="spellcasting.tradition" hideLabel class="strong" /><Value field="spellcasting.kind" hideLabel class="strong" /></Stack>
<Stack direction="row" class="trad" show="editing()">
<Select field="spellcasting.tradition" hideLabel class="small-sel" />
<Select field="spellcasting.kind" hideLabel class="small-sel" />
<Select field="spellcasting.attribute" hideLabel class="small-sel" />
</Stack>
<Stack direction="row" class="kvp">
<Value label="Spell DC" formula="10 + spellMod()">
<Part label="Base" formula="10" />
<Part label="{attrName(coalesce(spellcasting.attribute, keyAttribute))}" formula="coalesce(get(attributes, coalesce(spellcasting.attribute, keyAttribute)), 0)" />
<Part label="{rankName(spellcasting.rank)}" formula="prof(spellcasting.rank)" />
</Value>
<Stack class="rankcell">
<Value formula="rankLetter(spellcasting.rank)" hideLabel class="rank" show="coalesce(spellcasting.rank, 0) == 0" />
<Value formula="rankLetter(spellcasting.rank)" hideLabel class="rank on" show="spellcasting.rank > 0" />
<Select field="spellcasting.rank" hideLabel class="rank-sel" show="editing()" />
</Stack>
</Stack>
<Value label="Attack" format="signed" formula="spellMod()">
<Part label="{attrName(coalesce(spellcasting.attribute, keyAttribute))}" formula="coalesce(get(attributes, coalesce(spellcasting.attribute, keyAttribute)), 0)" />
<Part label="{rankName(spellcasting.rank)}" formula="prof(spellcasting.rank)" />
<Roll label="Spell attack" formula="d20 + value()" crit="face == 20" fumble="face == 1" />
</Value>
<!-- A play action; in edit its place goes to the selects above, which would push it onto a line of its own. -->
<Button label="Daily preparations" icon="i-lucide-sunrise" live toast show="not editing()">
<Set field="spells.*.cast" formula="false" />
<Set field="slots.*.left" formula="max" />
<Set field="divineFont.left" formula="divineFont.max" />
<Set field="focus.left" formula="focus.max" />
</Button>
</Stack>
<Stack class="rows" show="any(slots, max > 0) or editing()">
<Note class="grp">Spell slots</Note>
<List field="slots" addLabel="Add slots" class="slots">
<Stack direction="row" class="row slot">
<Value hideLabel class="strong" formula="concat('Rank ', rank)" show="not editing()" />
<Stack direction="row" class="inline" show="editing()"><Note class="strong">Rank</Note><Number field="rank" hideLabel min="1" max="10" class="small-num" /></Stack>
<Tracker field="left" hideLabel max="{max}" style="pips" live class="sq" />
<Value hideLabel class="dim" formula="concat(left, ' of ', max, ' left')" show="not editing()" />
<Stack direction="row" class="inline" show="editing()"><Number field="max" hideLabel min="0" class="small-num" /><Note class="dim">slots</Note></Stack>
</Stack>
</List>
</Stack>
<Stack direction="row" class="row th spell">
<Note></Note><Note></Note><Note>Spell</Note><Note>Range</Note><Note>Defense</Note><Note>Effect</Note>
</Stack>
<Stack class="rows" show="divineFont.max > 0 or editing()">
<Stack direction="row" class="grp">
<Note>Divine Font</Note>
<Tracker field="divineFont.left" hideLabel max="{divineFont.max}" style="pips" live class="sq" />
<Value hideLabel formula="concat(divineFont.left, ' of ', divineFont.max, ' left')" show="not editing()" />
<Stack direction="row" class="inline" show="editing()"><Number field="divineFont.max" hideLabel min="0" class="small-num" /><Note>uses</Note></Stack>
</Stack>
<Stack direction="row" class="row spell">
<Note></Note>
<Value hideLabel class="act" formula="glyph(divineFont.spell.cast)" />
<Value field="divineFont.spell.name" hideLabel preview class="name" show="not editing()" />
<Ref field="divineFont.spell" hideLabel preview class="name" show="editing()" />
<Value field="divineFont.spell.range" hideLabel />
<Value field="divineFont.spell.defense" hideLabel />
<Value field="divineFont.spell.damage" hideLabel class="dim" />
</Stack>
</Stack>
<Stack class="rows">
<Note class="grp">Spells</Note>
<List field="spells" addLabel="Add spell" class="rows spells">
<Stack direction="row" class="row spell" show="spell.kind != 'cantrip'">
<Checkbox field="cast" hideLabel style="dot" live />
<Value hideLabel class="act" formula="glyph(spell.cast)" />
<Value field="spell.name" hideLabel preview class="name" show="not editing()" />
<Ref field="spell" hideLabel preview class="name" show="editing()" />
<Value field="spell.range" hideLabel show="not editing()" />
<Stack direction="row" class="inline" show="editing()"><Note class="dim">Rank</Note><Number field="rank" hideLabel min="1" max="10" class="small-num" /></Stack>
<Value field="spell.defense" hideLabel />
<Value field="spell.damage" hideLabel class="dim" />
</Stack>
</List>
</Stack>
<Stack class="rows" show="any(spells, spell.kind == 'cantrip')">
<Stack direction="row" class="grp">
<Note>Cantrips</Note>
<Value hideLabel formula="concat('heightened to rank ', max(1, ceil(level / 2)), ' · at will')" />
</Stack>
<List field="spells" class="rows spells noadd">
<Stack direction="row" class="row spell" show="spell.kind == 'cantrip'">
<Note></Note>
<Value hideLabel class="act" formula="glyph(spell.cast)" />
<Value field="spell.name" hideLabel preview class="name" show="not editing()" />
<Ref field="spell" hideLabel preview class="name" show="editing()" />
<Value field="spell.range" hideLabel />
<Value field="spell.defense" hideLabel />
<Value field="spell.damage" hideLabel class="dim" />
</Stack>
</List>
</Stack>
<Stack class="rows" show="focus.max > 0 or editing()">
<Stack direction="row" class="grp">
<Note>Focus spells</Note>
<Tracker field="focus.left" hideLabel max="{focus.max}" style="pips" live class="sq" />
<Value hideLabel formula="concat(focus.left, ' of ', focus.max, ' focus points')" show="not editing()" />
<Stack direction="row" class="inline" show="editing()"><Number field="focus.max" hideLabel min="0" max="3" class="small-num" /><Note>focus points</Note></Stack>
</Stack>
<List field="focus.spells" addLabel="Add focus spell" class="rows spells">
<Stack direction="row" class="row spell" show="not editing()">
<Note></Note>
<Value hideLabel class="act" formula="glyph(cast)" />
<Value field="name" hideLabel preview class="name" />
<Value field="range" hideLabel />
<Value field="defense" hideLabel />
<Value field="damage" hideLabel class="dim" />
</Stack>
<Ref field="." hideLabel show="editing()" />
</List>
</Stack>
</Tab>
<Tab label="Biography" icon="i-game-icons-quill-ink">
<Stack direction="row" class="bio">
<Stack class="rows portraitcol">
<Note class="grp">Portrait</Note>
<Image field="portrait" label="Portrait" hideLabel size="full" class="portrait" />
</Stack>
<Grid cols="2" class="biocols">
<Stack class="rows kv">
<Note class="grp">Details</Note>
<Text field="biography.pronouns" label="Pronouns" />
<Text field="biography.age" label="Age" />
<Text field="biography.height" label="Height" />
<Text field="biography.weight" label="Weight" />
<Text field="biography.appearance" label="Appearance" multiline />
</Stack>
<Stack class="rows kv">
<Note class="grp">Personality</Note>
<Text field="biography.personality" label="Personality" multiline />
<Tags field="biography.edicts" label="Edicts" />
<Tags field="biography.anathema" label="Anathema" />
</Stack>
</Grid>
</Stack>
<Stack class="rows kv">
<Note class="grp">Relationships</Note>
<Text field="biography.allies" label="Allies" />
<Text field="biography.enemies" label="Enemies" />
<Text field="biography.organizations" label="Organizations" />
</Stack>
<Stack class="rows kv">
<Note class="grp">Backstory</Note>
<Markdown field="biography.backstory" hideLabel />
<Note class="grp">Notes</Note>
<Markdown field="notes" hideLabel />
</Stack>
</Tab>
</Tabs>
</Stack>
</Sheet>
/* Pathfinder 2e character sheet. Layout and measurements from the approved mockup. */
:root {
--d-gap: 6px;
--d-pad: 8px;
--d-h: 24px;
--d-fs: 13px;
--d-lfs: 10.5px;
--d-big: 22px;
--d-hero: 30px;
--d-h2: 15px;
font-size: var(--d-fs);
color: var(--st-ink);
/* The narrow layout follows the sheet's own width, not the window's (the app's sidebar takes some). */
container-type: inline-size;
}
.sheet-sheet {
display: grid;
gap: calc(var(--d-gap) + 10px) var(--d-gap);
max-width: 1180px;
margin: 0 auto;
padding-top: 10px;
}
.sheet-sheet > * + * { margin-top: 0 !important; }
.sheet-tab > * + * { margin-top: 0; }
/* Labels */
.sheet-field-label, .label, .sheet-note.label {
font-size: var(--d-lfs);
font-weight: 700;
text-transform: uppercase;
letter-spacing: .04em;
color: var(--st-ink-muted);
line-height: 1.2;
}
.sheet-field-value { font-weight: 700; font-variant-numeric: tabular-nums; }
.dim .sheet-field-value, .dim { color: var(--st-ink-muted); font-weight: 400; }
.strong .sheet-field-value { font-weight: 700; }
.sheet-note { font-size: inherit; color: inherit; margin: 0; }
/* Panels; each section's label sits on its top edge like a folio tab. */
.sheet-section {
position: relative;
overflow: visible;
background: var(--st-panel);
border: 1px solid var(--st-border-strong);
border-radius: var(--st-radius);
min-width: 0;
}
.folio > div:first-child {
position: absolute;
top: 0;
left: var(--d-pad);
transform: translateY(-55%);
width: auto;
padding: 3px 10px 4px;
background: var(--st-panel);
border: 1px solid var(--st-border-strong);
border-bottom-color: var(--st-panel);
border-radius: calc(var(--st-radius) * .8) calc(var(--st-radius) * .8) 0 0;
z-index: 1;
}
.folio > div:first-child h2 { font-family: var(--st-font-display); font-size: var(--d-h2); line-height: 1; font-weight: 700; }
.folio > div:first-child > * { align-items: center; gap: .3em; }
.folio > div:first-child .text-primary { width: .95em; height: .95em; margin: 0; }
.folio > div:last-child { padding: calc(var(--d-pad) + 6px) var(--d-pad) var(--d-pad); }
.aside {
position: absolute;
top: 0;
right: var(--d-pad);
transform: translateY(-50%);
font-size: var(--d-lfs);
font-weight: 700;
color: var(--st-ink-muted);
background: var(--st-panel);
padding: 0 6px;
z-index: 1;
}
/* Chips (a feat's type) look like the Strikes trait chips. */
.chip .sheet-field-value, .sheet-note.chip {
display: inline-flex;
align-items: center;
height: 20px;
padding: 0 5px;
border-radius: 4px;
background: var(--st-panel-muted);
box-shadow: inset 0 0 0 1px var(--st-border-strong);
font-size: var(--d-lfs);
line-height: 1;
color: var(--st-ink);
font-weight: 500;
white-space: nowrap;
}
/* Rank badges */
.rank .sheet-field-value {
display: inline-grid;
place-items: center;
width: 20px;
height: 17px;
border-radius: 4px;
font-size: 10.5px;
font-weight: 700;
border: 1px solid var(--st-border-strong);
color: var(--st-ink-muted);
}
.rank.on .sheet-field-value { background: var(--st-primary); color: var(--st-on-primary); border-color: var(--st-primary); }
/* Action glyphs */
.act { color: var(--st-primary); font-weight: 700; font-size: 1.15em; line-height: 1; white-space: nowrap; }
.act .sheet-field-value { color: inherit; }
/* Header */
.head > div:last-child {
display: grid;
grid-template-columns: 1fr auto;
gap: calc(var(--d-gap) + 4px) 20px;
align-items: start;
padding: var(--d-pad);
}
/* The section's stack spacing would push the grid items apart and lift the level box. */
.head > div:last-child > div > * { margin: 0 !important; }
.head > div:last-child > div { display: contents; }
/* The name's input keeps the name's size and place; its box sits just outside the text. */
.charname [data-slot="root"] { width: auto; max-width: 100%; }
.sheet-sheet .charname input[data-slot="base"] {
font-family: var(--st-font-display);
font-size: calc(var(--d-big) * 1.35);
font-weight: 700;
line-height: 1;
width: auto;
min-width: 8ch;
max-width: calc(100% + 7px);
field-sizing: content;
height: calc(var(--d-big) * 1.35 + 6px);
margin: -3px 0 -3px -7px;
padding: 0 6px;
}
.charname .sheet-field-value { font-family: var(--st-font-display); font-size: calc(var(--d-big) * 1.35); line-height: 1; }
.refs { gap: 6px 8px; margin-top: 0; }
.refgroup { gap: 6px 8px; flex-wrap: nowrap; }
.card {
border: 1px solid var(--st-border-strong);
border-radius: calc(var(--st-radius) * .8);
padding: 3px 12px 4px;
background: var(--st-panel-muted);
}
.card .sheet-field-value { font-size: calc(var(--d-fs) + 3px); line-height: 1.25; }
.meta {
/* Beside the name and build cards, its bottom level with the cards'; set in from the panel's
top and right edges by the same amount. The facts run under both. */
grid-column: 2;
grid-row: 1;
align-self: stretch;
border: 1px solid var(--st-border);
border-radius: var(--st-radius);
background: var(--st-panel-muted);
}
/* The header's stack spacing reset would zero this margin, so it's more specific. */
.head .meta.meta { margin: 6px 6px 0 0 !important; }
.meta > * {
display: grid;
grid-template-rows: auto calc(var(--d-big) * 1.5);
align-items: center;
justify-items: center;
gap: 2px;
padding: calc(var(--d-pad) * .9) calc(var(--d-pad) + 8px);
}
.meta > * + * { border-left: 1px solid var(--st-border); }
.meta > * { text-align: center; align-content: center; }
.meta .sheet-field-label { display: block; text-align: center; }
/* XP's and Speed's labels are notes; they get a field label row's height so every number sits on one line. */
.meta .cellv > .label { min-height: 16px; display: flex; align-items: center; justify-content: center; }
.meta > * > div { justify-content: center; }
.meta .sheet-field-value { display: flex; justify-content: center; align-items: center; }
.meta .sheet-field-value { font-size: calc(var(--d-big) * 1.15); line-height: 1; }
.meta .word .sheet-field-value { font-size: calc(var(--d-big) * .7); }
.meta .cellv { display: grid; }
.per { align-items: baseline; justify-content: center; gap: 3px; flex-wrap: nowrap !important; }
.unit { font-size: var(--d-lfs); color: var(--st-ink-muted); font-weight: 400; white-space: nowrap; }
.facts { grid-column: 1 / -1; gap: 2px 14px; align-items: baseline; }
.facts > * { display: flex; gap: 6px; align-items: baseline; }
.facts .sheet-value .sheet-field-value { font-weight: 400; }
/* An empty field's dash gets a chip's box with its text centered, so it doesn't sit low and stretch the row. */
.facts .sheet-tags .sheet-field-value > .flex-wrap > span.text-dimmed { display: inline-flex; align-items: center; }
.speeds > div:first-child { font-size: var(--d-lfs); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--st-ink-muted); }
/* Chips built from list entries (other speeds, IWR in view), the size of the tag chips. */
.chiplist { display: flex; align-items: baseline; gap: 6px; }
.chiplist > div:last-child { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; }
.chiplist .sheet-list-item { margin: 0 !important; }
.chip20 .sheet-field-value {
display: inline-flex;
align-items: center;
height: 20px;
padding: 0 5px;
font-size: var(--d-lfs);
font-weight: 500;
line-height: 1;
border-radius: 4px;
box-shadow: inset 0 0 0 1px var(--ui-border-accented);
background: var(--ui-bg-elevated);
}
/* Attributes and defenses */
.top { display: grid !important; grid-template-columns: auto auto 1fr; gap: 0 var(--d-gap); align-items: start; }
.attrs { align-self: start; display: grid !important; grid-template-columns: repeat(3, 76px) !important; grid-auto-rows: 1fr; gap: 6px !important; }
.box {
position: relative;
border: 1px solid var(--st-border-strong);
border-radius: var(--st-radius);
padding: calc(var(--d-pad) * .45);
background: var(--st-panel);
text-align: center;
justify-content: center;
}
.attr { padding: calc(var(--d-pad) * .6 + 4px) 4px calc(var(--d-pad) * .6); }
.attr .sheet-number > div:first-child { justify-content: center; }
.attr .sheet-field-value { font-size: calc(var(--d-big) * 1.2); line-height: 1.05; }
/* As tall as the value's line, so the label and box don't move. */
.attr input { font-size: calc(var(--d-big) * 1.2); font-weight: 700; height: calc(var(--d-big) * 1.26); padding-block: 0; }
.attr:has(.keytag) { border-color: var(--st-primary); box-shadow: inset 0 0 0 1px var(--st-primary); }
.attr > div:has(.keytag) { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); }
.keytag {
font-size: 9.5px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: .05em;
line-height: 1;
padding: 2px 5px;
border-radius: 3px;
background: var(--st-primary);
color: var(--st-on-primary);
}
/* One grid under the attributes and defenses: the attributes run down to the bottom of the shield
button's row, which keeps one height; Conditions and IWR start in that row, and their extra lines
take a row of their own, so neither the attributes nor the shield info move. */
.top { grid-template-rows: auto calc(var(--d-h) + 4px) 1fr; }
.defwrap, .defwrap > .strip { display: contents !important; }
.top > .attrs { grid-column: 1; grid-row: 1 / 3; align-self: stretch; }
.defs { grid-column: 2 / 4; grid-row: 1; align-self: stretch; margin-bottom: var(--d-gap); }
.shieldrow { grid-column: 2; grid-row: 2; align-self: center; flex-wrap: nowrap !important; }
.iwrcond { grid-column: 3; grid-row: 2 / 4; margin-left: 6px; }
.top:not(:has(.shieldrow)) .iwrcond { grid-column: 2 / 4; margin-left: 0; }
.defs { display: grid !important; grid-template-columns: .9fr 2fr 1.2fr; gap: var(--d-gap); }
.ac { border: 2px solid var(--st-primary); }
.ac .sheet-value > div:first-child { justify-content: center; }
.ac > .sheet-value:first-child .sheet-field-value { font-size: var(--d-hero); line-height: 1.05; }
.ac .sub .sheet-field-value { font-size: var(--d-lfs); font-weight: 400; color: var(--st-ink-muted); }
.subline { justify-content: center; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.ac .up .sheet-field-value { font-size: var(--d-lfs); color: var(--st-primary); }
.hp { text-align: left; gap: 3px; }
.hpline { align-items: center; gap: 6px 14px; }
.now { align-items: flex-end; gap: 4px; }
.now .sheet-number input { width: 70px; font-size: var(--d-hero); font-weight: 700; height: calc(var(--d-hero) + 4px); }
.max .sheet-field-value { font-size: calc(var(--d-hero) * .7); color: var(--st-ink-muted); }
.adj { align-items: center; gap: 4px; }
.temp { margin-left: auto; }
.death { gap: 2px 12px; align-items: center; }
.bad { --ui-primary: var(--ui-error); }
.saves { text-align: left; justify-content: start; gap: 2px; }
.srow { display: grid !important; grid-template-columns: 1fr auto auto; align-items: center; gap: 6px; }
.srow > .sheet-value:nth-child(2) .sheet-field-value { font-size: calc(var(--d-big) * .8); }
.strip { font-size: var(--d-lfs); }
.strip > *, .shieldrow { align-items: center; gap: 4px 8px; }
.sheet-button.raise {
/* One width for both labels, so pressing it doesn't move the line. */
min-width: 10.4em;
justify-content: center;
height: calc(var(--d-h) + 4px);
padding: 0 12px;
border: 1px solid var(--st-primary);
border-radius: calc(var(--st-radius) * .66);
background: var(--st-panel);
color: var(--st-primary);
font-size: var(--d-lfs);
font-weight: 700;
box-shadow: none;
}
.sheet-button.raise.pressed { background: var(--st-primary); color: var(--st-on-primary); }
/* The strip under the defenses: labels beside their values, on one line. */
.strip .sheet-number, .strip .sheet-tags, .strip .sheet-value, .resist { display: flex; align-items: center; gap: 4px 6px; }
.strip .sheet-field-label { white-space: nowrap; }
/* Conditions and IWR are one flow of labels and chips: the wrappers step aside (display: contents), so
IWR follows the last condition, and every next line starts at the left edge. Edit's entry groups
stay whole. */
.iwrcond { display: flex !important; flex-wrap: wrap; align-items: baseline; align-content: flex-start; gap: 4px; min-width: 0; line-height: 20px; padding-top: 4px; }
.iwrcond > .sheet-tags, .iwrcond > .sheet-tags > div, .iwrcond > .sheet-tags [data-slot="root"],
.iwrcond > .resist, .iwrview, .iwrview > .chiplist, .iwrview > .chiplist > div, .iwrview .sheet-list-item,
.iwrview > .sheet-tags, .iwrview > .sheet-tags > .sheet-field-value, .iwrview > .sheet-tags .sheet-field-value > .flex-wrap { display: contents !important; }
.iwrcond > .sheet-tags .sheet-field-label { margin-right: 2px; }
.iwrcond > .resist > .label { margin-left: 10px; }
.iwrview > .sheet-note { margin: 0 2px 0 6px; }
.iwrview .sheet-list-item > div { flex: none !important; margin: 0 !important; }
.chip20 .sheet-field-value { white-space: nowrap; }
.iwrcond > .resist > .rgroup { flex-wrap: wrap; max-width: 100%; margin-left: 6px; }
/* In edit the kinds sit closer: each is a "+ Resist"-style pill. */
.iwrcond > .resist > .rgroup:not(.iwrview) { margin-left: 0; }
/* Tag inputs on the strip and in the facts: chips, then a small dashed "+ Add" input; no box. */
.sheet-sheet .strip .sheet-tags [data-slot="root"], .sheet-sheet .facts .sheet-tags [data-slot="root"] {
border: 0;
padding: 0;
min-height: 0;
background: transparent;
gap: 4px;
}
.strip .sheet-tags input, .facts .sheet-tags input {
flex: none;
width: 52px;
min-width: 0;
height: 20px;
padding: 0 5px;
font-size: var(--d-lfs);
border: 1px dashed var(--st-border-strong);
border-radius: 4px;
background: var(--st-panel-muted);
}
/* Chips match the "+ Add" input beside them, and read-only tags (Traits) match the chips. */
.strip .sheet-tags [data-slot="item"], .facts .sheet-tags [data-slot="item"],
.strip .sheet-tags .sheet-field-value > .flex-wrap > span, .facts .sheet-tags .sheet-field-value > .flex-wrap > span,
.traits .sheet-tags .sheet-field-value > .flex-wrap > span {
height: 20px;
padding: 0 5px;
font-size: var(--d-lfs);
line-height: 1;
border-radius: 4px;
}
/* Where it can, the "+ Add" input is as wide as its placeholder ("+ Immune"). */
@supports (field-sizing: content) {
.strip .sheet-tags input, .facts .sheet-tags input { width: auto; field-sizing: content; }
}
.strip .sheet-tags input:focus, .facts .sheet-tags input:focus { width: 110px; background: transparent; }
.strip .sheet-tags input::placeholder, .facts .sheet-tags input::placeholder { color: var(--st-primary); font-weight: 700; opacity: 1; }
.rgroup { align-items: center; gap: 4px; }
.rgroup > .sheet-note { font-weight: 700; }
.coin input { height: 22px; font-weight: 700; }
.coin input { width: 52px; text-align: center; }
.shieldrow .coin input, .shieldrow .coin .sheet-field-value { width: 44px; }
.shieldname .sheet-field-value { font-size: var(--d-lfs); font-weight: 400; }
/* Rows: Strikes, Actions, and the tabs share one row style. */
.sheet-list .sheet-list-item { margin: 0 !important; }
.rows .sheet-list-item:not(:has(.row)) { display: none; }
.row {
display: grid !important;
align-items: center;
gap: 6px;
min-height: calc(var(--d-h) + 6px);
/* The first line keeps that height when an expanded preview adds a second, so nothing moves. */
grid-template-rows: minmax(calc(var(--d-h) + 6px - var(--d-gap) * .6 - 1px), auto);
border-bottom: 1px solid var(--st-border);
padding: calc(var(--d-gap) * .3) 0;
}
.row.edit { display: flex !important; flex-wrap: wrap; align-items: end; }
/* Header rows sit on their list like the rows below them, without the section's spacing. */
.row.th { min-height: 0; margin-bottom: 0 !important; }
.row.th > * { font-size: var(--d-lfs); color: var(--st-ink-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.name .sheet-field-value { font-size: calc(var(--d-fs) + 1px); }
.skill .name .sheet-field-value, .srow .name .sheet-field-value, .prof .sheet-field-value { font-weight: 400; }
.grp {
display: flex;
justify-content: space-between;
align-items: center;
gap: 8px;
padding: 3px 6px;
margin-top: calc(var(--d-gap) * .8);
background: var(--st-panel-muted);
border-radius: 4px;
font-size: var(--d-lfs);
font-weight: 700;
text-transform: uppercase;
letter-spacing: .04em;
}
/* Each group (a bar and its rows) has the same space above its bar and below it. */
.rows:has(> .grp) { gap: 0 !important; padding-top: 4px; }
.rows > .grp { margin-top: 0 !important; margin-bottom: 4px !important; }
/* In the tabs, group bars reach the panel's edges; their text lines up with the rows under them.
The Biography's side-by-side columns keep theirs inside the column. */
.sheet-tab .grp { margin-inline: calc(var(--d-pad) * -1.5); padding-inline: calc(var(--d-pad) * 1.5); border-radius: 0; }
.sheet-tab .bio .grp { margin-inline: 0; padding-inline: 6px; border-radius: 4px; }
.row.th.spell, .row.th.inv { margin-bottom: 8px !important; }
/* Divine Font's pips sit beside its count, on the right. */
.grp > .sq { margin-left: auto; }
.grp .sheet-field-value { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--st-ink-muted); }
.pair { grid-template-columns: 1.5fr 1fr !important; gap: calc(var(--d-gap) + 10px) var(--d-gap) !important; align-items: stretch; }
.strikes .row { grid-template-columns: 30px 1.1fr 130px 1fr 1.6fr; }
.hit { align-items: baseline; gap: 6px; }
.map .sheet-field-value { font-size: var(--d-lfs); color: var(--st-ink-muted); font-weight: 400; }
/* In edit, the attribute and item bonus fit where the MAP steps were. */
.sheet-sheet .hit .small-sel button[data-slot="base"] { padding: 0 14px 0 4px; }
.sheet-sheet .hit .small-sel [data-slot="trailing"] { padding-right: 2px; }
.hit .small-num .sheet-field-value { width: 30px; }
.sheet-sheet .hit .small-num input { padding-inline: 2px; }
/* MAP steps still roll, but stay quiet: muted, with a dotted underline like other clickable values. */
.map .sheet-roll-trigger { color: var(--st-ink-muted); font-weight: 400; border-bottom: 1px dotted currentColor; }
.dmg { align-items: baseline; gap: 0 6px; flex-wrap: wrap; }
.dmg .sheet-field-value { font-weight: 400; }
.dmg .dim .sheet-field-value { font-size: var(--d-lfs); }
.traits .sheet-tags .sheet-field-value > .flex-wrap { gap: 4px; }
.acts .row { grid-template-columns: 30px 1fr auto; }
.acts .row > .dim .sheet-field-value { font-size: var(--d-lfs); }
/* An expanded preview opens as a full-width line under its row: the name's wrappers step aside so
the preview panel is a cell of the row's own grid, placed after the row's other cells. */
.strikes .row > .cell, .strikes .row > .cell > .sheet-value, .acts .row > .cell, .acts .row > .cell > .sheet-value,
.row > .sheet-value.name { display: contents; }
.row .sheet-preview-frame { grid-column: 1 / -1; order: 99; margin: 2px 0 6px; }
/* The whole name cell opens the preview, not just the text: the button fills its cell, and the
hover tint shows how far it reaches. Rolls and breakdowns in other cells keep their own clicks. */
.row .sheet-field-value:has(> span > .sheet-preview-trigger) { align-self: stretch; display: flex; margin: -2px 0; }
.row .sheet-field-value > span:has(> .sheet-preview-trigger) { display: flex; flex: 1; }
.row .sheet-preview-trigger { flex: 1; padding: 0 4px; margin-left: -4px; border-radius: 4px; }
.row .sheet-preview-trigger:hover { background: color-mix(in srgb, var(--st-primary) 7%, transparent); }
/* Skills and proficiencies on the left, the tabs on the right. */
.mid { display: grid !important; grid-template-columns: minmax(300px, 1fr) 1.75fr; gap: calc(var(--d-gap) + 10px) var(--d-gap); align-items: stretch; }
.leftcol { gap: calc(var(--d-gap) + 10px); }
/* Fixed columns, so attributes, ranks, and modifiers line up from row to row. */
.skills .row { grid-template-columns: 1fr 32px 30px 58px; }
.skills .row > :last-child { justify-self: end; }
.rank-sel button { font-size: var(--d-lfs); }
.skills .row:has(.rank:not(.on)) .name .sheet-field-value { color: var(--st-ink-muted); font-weight: 400; }
/* Perception and Initiative sit on each other like list rows, without the section's spacing. */
.lead:not(.init) { margin-bottom: 0 !important; }
/* Perception and Initiative look like skill rows: the same name and modifier sizes. */
.lead h4 { font-family: inherit; font-size: calc(var(--d-fs) + 1px); font-weight: 400; margin: 0; }
/* The "rolls with" select fits its label; the modifier stays at the right edge like Perception's. */
.lead.init { grid-template-columns: auto auto 1fr; border-bottom: 2px solid var(--st-border-strong); margin-bottom: calc(var(--d-gap) * .5); }
.lead.init > :last-child { justify-self: end; }
.lead.init:has(.ibonus) { grid-template-columns: auto auto 1fr auto; }
.lead.init .ibonus { justify-self: end; }
/* Lore continues the skill list: no gap or extra divider between them. */
.skills .rows:not(.lore) { margin-bottom: 0 !important; }
/* Each label sits on its first line of badges; the badges are an aligned two-column grid. */
.profrow { display: grid !important; grid-template-columns: 70px 1fr; gap: 4px 12px; align-items: baseline; padding: 2px 0; }
.proflist > div { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; }
.prof .sheet-field-value { font-size: calc(var(--d-fs) - 2px); }
.prof { gap: 4px; align-items: baseline; }
/* Tabs */
.maintabs { min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; }
/* The tabs run as tall as the Skills and Proficiencies column. */
.maintabs > [role="tabpanel"]:not([hidden]) { flex: 1; display: flex; flex-direction: column; }
.maintabs .sheet-tab { flex: 1; }
.sheet-tab {
background: var(--st-panel);
border: 1px solid var(--st-border-strong);
border-radius: 0 var(--st-radius) var(--st-radius) var(--st-radius);
padding: calc(var(--d-pad) * 1.5);
min-height: 640px;
}
.kvp { gap: 6px; align-items: center; }
/* The Class and Spells tabs' first line is their main information: larger labels and values (rank badges keep their size). */
.keyline .sheet-field-label { font-size: calc(var(--d-lfs) + 1px); }
.keyline .sheet-field-value:not(.rank .sheet-field-value) { font-size: calc(var(--d-fs) + 3px); font-weight: 700; line-height: 1; }
.feature { grid-template-columns: 52px 1fr; }
.features .row:has(.future) .name .sheet-field-value { color: var(--st-ink-muted); font-weight: 400; }
.kv .row { grid-template-columns: 130px 1fr; }
/* Key-value rows (Deity, Biography) are list rows: no section spacing between them, a divider under each, regular values. */
.kv { gap: 0 !important; }
.kv > .sheet-text, .kv > .sheet-tags, .kv > .sheet-markdown { min-height: calc(var(--d-h) + 6px); padding: calc(var(--d-gap) * .3) 0; border-bottom: 1px solid var(--st-border); }
.kv .sheet-field-value { font-weight: 400; }
/* Biography inputs put their text where the play text sits; long text starts one line tall and grows. */
.sheet-sheet .kv input[data-slot="base"], .sheet-sheet .kv textarea[data-slot="base"] { margin-left: -5px; width: calc(100% + 5px); padding: 0 4px; font-size: inherit; }
.sheet-sheet .kv input[data-slot="base"] { height: 22px; }
.sheet-sheet .kv textarea[data-slot="base"] { min-height: 22px; padding-block: 2px; line-height: 1.35; field-sizing: content; resize: none; }
.sheet-sheet .kv .sheet-tags [data-slot="root"] { margin-left: -5px; min-height: 22px; padding-block: 0; padding-left: 4px; }
/* Backstory and notes editors: a dashed box like the other inputs, its text where the play text sits. */
.sheet-sheet .kv .sheet-markdown .sheet-field-value > div { margin-left: -5px; padding: 2px 4px; border: 1px dashed var(--st-border-strong); border-radius: 4px; }
.sheet-sheet .kv .ProseMirror { padding-inline: 0; }
.sheet-sheet .kv .ProseMirror p { line-height: 1.5; }
/* An empty portrait's "No image" is a quiet placeholder, not a value. */
.portrait .sheet-field-value { font-weight: 400; color: var(--st-ink-muted); }
/* The portrait sits in a frame under its group bar, like the Details column beside it. */
.portrait img { display: block; width: 100%; padding: 6px; border: 1px solid var(--st-border); border-radius: var(--st-radius); background: var(--st-panel); }
.feat { grid-template-columns: 40px 18px 1fr 110px; }
/* In edit, a feat's type is a select the size of the chip it replaces. */
.feat .small-sel .sheet-field-value { width: auto; justify-self: start; }
.sheet-sheet .feat .small-sel button[data-slot="base"] { height: 20px; padding: 0 14px 0 5px; font-size: var(--d-lfs); font-weight: 400; background: var(--st-panel-muted); }
.sheet-sheet .feat .small-sel [data-slot="trailing"] { padding-right: 2px; }
/* Level and quantity inputs keep their number where the play value sits, at the column's start. */
.feat .small-num .sheet-field-value, .inv .small-num .sheet-field-value { width: 30px; margin-left: -5px; }
.sheet-sheet .feat .small-num input, .sheet-sheet .inv .small-num input { text-align: left; padding-inline: 4px; }
.spell { grid-template-columns: 22px 76px minmax(120px, 1fr) 110px 90px 1.4fr; }
.slot { display: flex !important; gap: 12px; }
.inv { grid-template-columns: 36px 1fr 44px 170px 30px; }
.moves { gap: 4px; }
/* Move buttons fit inside a 30px row. */
.moves .sheet-button { height: 22px; padding: 0 6px; font-size: var(--d-lfs); }
/* No item can be invested: drop the Inv column. */
.sheet-tab:not(:has(.invcol)) .inv { grid-template-columns: 36px 1fr 44px 170px; }
/* An empty coin shows its 0 like a stored one, without a reset button. */
.coin input::placeholder { color: inherit; opacity: 1; }
.coin button[aria-label="Use automatic value"] { display: none; }
.bulk { flex-basis: 100%; align-items: center; gap: 4px 8px; }
.hpbar { position: relative; gap: 0 !important; }
.hpbar > .tempbar { position: absolute; inset: 0; }
.tempbar [data-slot="base"] { background: transparent; }
.tempbar [data-slot="indicator"] { background: var(--st-contrast); }
.bmeter { width: 90px; }
.bmeter [data-slot="base"] { height: 7px; }
.trad { gap: 4px; }
/* In edit, tradition, kind, and attribute are selects about the size of the words they replace. */
.sheet-sheet .trad .small-sel button[data-slot="base"] { height: 20px; padding: 0 14px 0 4px; }
.sheet-sheet .trad .small-sel [data-slot="trailing"] { padding-right: 2px; }
.bio { display: grid !important; grid-template-columns: 180px 1fr; gap: calc(var(--d-gap) * 2); align-items: start; }
.biocols { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important; }
.kv > .sheet-text, .kv > .sheet-tags { display: grid; grid-template-columns: 130px 1fr; gap: 6px; align-items: center; }
/* Inputs keep the size of the values they replace: narrow boxes. */
.sheet-number input { padding-inline: 4px; }
/* Level and XP inputs are as wide as their number, so the strip keeps its play width. */
.meta .sheet-number [data-slot="root"] { width: auto; }
.meta .sheet-number input {
width: auto;
min-width: 1.4em;
field-sizing: content;
padding: 0 3px;
font-size: calc(var(--d-big) * 1.15);
font-weight: 700;
line-height: 1;
height: calc(var(--d-big) * 1.3);
}
/* In play, Level and XP take their input's room, so the box is the same size in both modes. */
.meta .sheet-number .sheet-field-value:not(:has(input)) { min-width: 1.4em; padding: 0 3px; }
@supports not (field-sizing: content) {
.meta .sheet-number .sheet-field-value:has(input) { width: 48px; }
.meta .sheet-number [data-slot="root"], .meta .sheet-number input { width: 100%; }
}
.now .sheet-number .sheet-field-value { width: 72px; }
.temp .sheet-field-value, .coin .sheet-field-value { width: 52px; }
.temp input { font-size: var(--d-big); font-weight: 700; height: calc(var(--d-big) + 6px); }
.adj .sheet-button { font-size: var(--d-lfs); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
/* Pips: label beside them, no count under them. */
.death .sheet-tracker, .meta .sheet-tracker { display: flex; align-items: center; gap: 4px; }
.meta .sheet-tracker { display: grid; }
.death .sheet-field-value > div > div:last-child, .bmeter .sheet-field-value > div > div:last-child, .meter .sheet-field-value > div > div:last-child, .meta .sheet-tracker .sheet-field-value > div > div:last-child,
.grp .sheet-tracker .sheet-field-value > div > div:last-child, .slot .sheet-tracker .sheet-field-value > div > div:last-child { display: none; }
.death .sheet-field-value button, .grp .sheet-field-value button, .slot .sheet-field-value button { width: 13px; height: 13px; }
.meta .sheet-tracker .sheet-field-value button { width: 19px; height: 19px; }
.sq .sheet-field-value button { border-radius: 2px; }
/* Tabs: folio tabs on the panel's top edge. */
.maintabs [data-slot="list"] { background: transparent; padding: 0; gap: 2px; border-radius: 0; margin-bottom: -1px; z-index: 1; }
.maintabs [data-slot="list"] > [data-slot="indicator"] { display: none; }
.maintabs [data-slot="list"] { flex-wrap: wrap; }
.maintabs [data-slot="label"] { overflow: visible; }
.maintabs [data-slot="trigger"] {
flex-grow: 0;
padding: 4px 12px;
border: 1px solid transparent;
border-bottom: 0;
border-radius: calc(var(--st-radius) * .8) calc(var(--st-radius) * .8) 0 0;
font-family: var(--st-font-display);
font-size: var(--d-h2);
font-weight: 700;
color: var(--st-ink-muted);
}
.maintabs [data-slot="trigger"][data-state="active"] { background: var(--st-panel); border-color: var(--st-border-strong); color: var(--st-ink); }
.maintabs [data-slot="leadingIcon"] { color: var(--st-primary); width: .95em; height: .95em; }
.maintabs .sheet-tab { padding-top: calc(var(--d-pad) * 1.5); margin-top: 0; }
/* Edit mode keeps the play layout: controls sit in the row cells and look like the values they replace
(spec, "States"): dashed edges, no fill, the size of the value. */
.sheet-field-value + p { display: none; }
.cell { min-width: 0; }
.sheet-sheet input[data-slot="base"], .sheet-sheet textarea[data-slot="base"],
.sheet-sheet button[data-slot="base"][role="combobox"], .sheet-sheet button[data-slot="base"][aria-haspopup="listbox"],
.sheet-sheet .sheet-tags [data-slot="root"] {
background: transparent;
box-shadow: none;
border: 1px dashed var(--st-border-strong);
border-radius: 4px;
}
.sheet-sheet input[data-slot="base"]:focus-visible, .sheet-sheet textarea[data-slot="base"]:focus-visible,
.sheet-sheet button[data-slot="base"]:focus-visible, .sheet-sheet .sheet-tags [data-slot="root"]:focus-within {
outline: 2px solid var(--st-primary);
outline-offset: 1px;
}
.sheet-sheet button[data-slot="base"][role="combobox"], .sheet-sheet button[data-slot="base"][aria-haspopup="listbox"] {
height: var(--d-h);
padding: 0 18px 0 6px;
font-size: inherit;
font-weight: 700;
}
.sheet-sheet [data-slot="trailing"] { padding-right: 4px; }
.sheet-sheet [data-slot="trailingIcon"] { width: 12px; height: 12px; }
.row input[data-slot="base"], .strip input[data-slot="base"], .grp input[data-slot="base"] { height: var(--d-h); padding: 0 6px; font-size: inherit; }
/* Inputs in a group bar, and pickers on the tabs' first lines, fit in the line's play height. */
.sheet-sheet .grp input[data-slot="base"] { height: 16px; }
.sheet-sheet .gear button[data-slot="base"][aria-haspopup] { height: 20px; }
/* A group's "+ Add" sits at the right end of its bar instead of on a line of its own. */
.rows:has(> .grp) { position: relative; }
.rows:has(> .grp) > .sheet-list > .flex-wrap {
position: absolute;
top: 4px;
right: 0;
height: 22px;
margin: 0 !important;
align-items: center;
}
.rows:has(> .grp) > .sheet-list > :not(:last-child) { margin-bottom: 0 !important; }
/* Initiative's "rolls with" is a real select in play and edit alike. */
.init button[data-slot="base"][role="combobox"] { border-style: solid; font-weight: 400; }
/* Pickers of a referenced name look like the underlined name, with a small ▾. */
.sheet-sheet .name button[data-slot="base"][aria-haspopup], .sheet-sheet .card button[data-slot="base"][aria-haspopup],
.sheet-sheet .kv .sheet-ref button[data-slot="base"][aria-haspopup] {
width: auto;
max-width: 100%;
border: 0;
padding: 0 16px 0 0;
text-decoration: underline;
text-underline-offset: 3px;
color: var(--st-ink);
}
.name .sheet-field-value, .kv .sheet-ref .sheet-field-value { width: auto; min-width: 0; }
/* The Class tab's first line keeps its height when Key attribute becomes a select. */
.sheet-sheet .keyline button[data-slot="base"][aria-haspopup] { height: 20px; }
.sheet-sheet .card button[data-slot="base"][aria-haspopup] { height: auto; font-size: calc(var(--d-fs) + 3px); line-height: 1.25; }
/* A card keeps its play width and color: its ▾ sits on its top edge, like the KEY badge. */
.card { position: relative; }
.sheet-sheet .card button[data-slot="base"][aria-haspopup] { position: static; padding-right: 0; color: var(--st-primary); }
.sheet-sheet .card [data-slot="trailing"] { inset: -7px 6px auto auto; padding: 0 1px; background: var(--st-panel); border-radius: 3px; }
.card:has(button[data-slot="base"]) { border-style: dashed; }
.card:has(button[data-slot="base"]), .rankcell:has(.rank-sel) .rank.on .sheet-field-value {
outline: 2px solid color-mix(in srgb, var(--st-primary) 22%, transparent);
outline-offset: 2px;
}
.ident .sheet-field-value > .space-y-2 { margin: 0; }
/* Rank badges stay in edit, dashed; an invisible select over each one opens the choices. */
.rankcell { position: relative; display: grid !important; place-items: center; }
.rankcell .rank-sel { position: absolute; inset: 0; }
.rankcell .rank-sel .sheet-field-value { width: 100%; height: 100%; }
.rankcell .rank-sel button[data-slot="base"] { width: 100%; height: 100%; min-height: 0; padding: 0; opacity: 0; cursor: pointer; }
.rankcell:has(.rank-sel) .rank:not(.on) .sheet-field-value { border-style: dashed; }
.rankcell:has(button:focus-visible) .rank .sheet-field-value { outline: 2px solid var(--st-primary); outline-offset: 1px; }
/* "+ Add …" are small dashed pills; rows lose their move buttons and remove with a ×. */
.sheet-list > .flex-wrap > button[data-slot="base"], .sheet-list > .flex-wrap button[data-slot="base"][aria-haspopup="listbox"] {
height: auto;
padding: 1px 6px;
font-size: var(--d-lfs);
font-weight: 700;
color: var(--st-primary);
background: var(--st-panel-muted);
border: 1px dashed var(--st-border-strong);
border-radius: 4px;
box-shadow: none;
}
.sheet-list > .flex-wrap { margin-top: 4px; }
.sheet-list > .flex-wrap > .w-56 { width: auto; }
.sheet-list > .flex-wrap > button [data-slot="leadingIcon"] { display: none; }
.sheet-list > .flex-wrap > button [data-slot="label"]::before { content: "+ "; }
.noadd > .flex-wrap { display: none; }
.noadd > :not(:last-child) { margin-bottom: 0 !important; }
.sheet-list-item button[aria-label="Move up"], .sheet-list-item button[aria-label="Move down"] { display: none; }
.rows .sheet-list-item { align-items: center; gap: 2px; }
.sheet-list-item > div:last-child:not(:first-child) { flex-direction: row; gap: 0; }
.sheet-list-item button[aria-label="Remove"] { padding: 0 4px; color: var(--st-ink-muted); }
.sheet-list-item button[aria-label="Remove"]:hover { color: var(--ui-error); background: transparent; }
.sheet-list-item button[aria-label="Remove"] [data-slot="leadingIcon"] { display: none; }
.sheet-list-item button[aria-label="Remove"]::after { content: "×"; font-size: 16px; line-height: 1; }
/* Rows keep their play width in edit: the × sits over the row's right end, and only the last cell
makes room for it, so the columns don't move. */
.rows .sheet-list-item { position: relative; }
.rows .sheet-list-item > div:last-child:not(:first-child) {
position: absolute;
top: 0;
right: 0;
height: calc(var(--d-h) + 6px);
align-items: center;
}
.rows .sheet-list-item > div:last-child:not(:first-child) button[aria-label="Remove"] { padding: 0 1px; }
.rows .sheet-list-item:has(> div:last-child:not(:first-child)) > div:first-child .row > :last-child { padding-right: 14px; }
/* A list of rows adds with a real button on a line of its own under the rows
(the dashed "+ Add" pills are for chips). */
.sheet-list.rows > :first-child:not(:last-child) { margin-bottom: 0 !important; }
.sheet-list.rows > .flex-wrap { margin-top: 6px !important; }
.sheet-sheet .sheet-list.rows > .flex-wrap > button[data-slot="base"], .sheet-sheet .sheet-list.rows > .flex-wrap button[data-slot="base"][aria-haspopup="listbox"] {
height: 24px;
padding: 0 10px;
font-size: calc(var(--d-lfs) + 1px);
border: 1px solid var(--st-border-strong);
background: var(--st-panel);
border-radius: 5px;
}
.sheet-sheet .sheet-list.rows > .flex-wrap button[data-slot="base"]:hover { background: var(--st-panel-muted); }
/* In a group bar, the button fits the bar. */
.sheet-sheet .rows:has(> .grp) > .sheet-list > .flex-wrap > button[data-slot="base"] { height: 18px; padding: 0 7px; font-size: var(--d-lfs); border: 1px solid var(--st-border-strong); background: var(--st-panel); border-radius: 5px; }
/* A lore's × sits at the end of its name, so its modifier stays in line with the skills above. */
.skills .lore .sheet-list-item > div:last-child:not(:first-child) { right: calc(32px + 30px + 58px + 18px + 2px); }
.skills .lore .sheet-list-item:has(> div:last-child:not(:first-child)) > div:first-child .row > :last-child { padding-right: 0; }
.skills .lore .sheet-list-item:has(> div:last-child:not(:first-child)) > div:first-child .row > :first-child { padding-right: 14px; }
/* A custom lore's name is about as wide as the skill names above it; its text lines up with
theirs and its box sits just outside it, like the character name's. */
.sheet-sheet .lore .name input[data-slot="base"] { margin-left: -7px; padding-left: 6px; width: auto; min-width: 12ch; max-width: calc(100% + 7px); field-sizing: content; }
.lore .name [data-slot="root"], .lore .name .sheet-field-value { width: auto; }
/* Notes inputs look the same empty or filled: a small dashed box as wide as its text. Beside a strike's
trait chips it moves to a second line when there isn't room. */
.note-in .sheet-field-value, .note-in { width: auto; min-width: 0; }
.sheet-sheet .note-in input[data-slot="base"] { height: 20px; padding: 0 4px; font-size: var(--d-lfs); font-weight: 400; color: var(--st-ink-muted); field-sizing: content; min-width: 56px; max-width: 100%; }
@supports not (field-sizing: content) {
.note-in .sheet-field-value, .note-in { width: 56px; }
}
.traits { flex-wrap: nowrap !important; }
.traits:has(.note-in) { flex-wrap: wrap !important; }
.gear { flex-basis: auto; margin-left: auto; }
.sheet-list > .flex-wrap > .w-56 button[data-slot="base"] { min-width: 130px; padding-right: 18px; }
.spell .sheet-checkbox button, .spell .sheet-field-value > button { width: 13px; height: 13px; border-radius: 2px; }
.spell > .sheet-value:not(.name) .sheet-field-value { font-weight: 400; }
.small-num .sheet-field-value { width: 44px; }
.small-num input { text-align: center; }
/* A spell's rank input is about as tall as the range it replaces, so stacked phone rows keep their height. */
.sheet-sheet .spell .small-num input { height: 20px; }
.small-sel .sheet-field-value { width: auto; }
.strikes .row { grid-template-columns: 30px minmax(130px, 1.1fr) minmax(130px, auto) minmax(110px, 1fr) 1.4fr; }
.traits { gap: 2px 4px; align-items: center; }
.inline { display: flex; align-items: center; gap: 4px; }
.inline .sheet-field-label { color: inherit; }
.resist { gap: 4px 8px; align-items: center; }
/* Editable pills (Languages, Senses, Other speeds, IWR in edit): each entry is one chip, the size of
the tag chips, whose inputs are borderless and split by a hairline, with its × inside. You click
into it to change it; "+ Add" is the dashed pill after the entries. */
.pills { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.facts > .pills { align-items: center; }
.pills > * { margin-block: 0 !important; }
.pills > div:first-child:not(.flex-wrap):not(:has(.sheet-list-item)) { font-size: var(--d-lfs); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--st-ink-muted); }
.pills > div:has(> .sheet-list-item) { display: flex; flex-wrap: wrap; gap: 4px; }
.pills .sheet-list-item {
margin: 0 !important;
gap: 0;
height: 20px;
align-items: center;
border-radius: 4px;
background: var(--st-panel-muted);
box-shadow: inset 0 0 0 1px var(--st-border-strong);
}
.pills .sheet-list-item:focus-within { outline: 2px solid var(--st-primary); outline-offset: 1px; }
.pills .sheet-list-item > div:first-child { display: flex; flex: none; }
.pills .pill { gap: 0; flex-wrap: nowrap; }
.pills .pill > * { margin: 0 !important; }
.pills .pill > * + * { border-left: 1px solid var(--st-border-strong); }
.pills .sheet-field-value, .pills [data-slot="root"] { width: auto; }
.sheet-sheet .pills input[data-slot="base"] {
width: auto;
min-width: 3ch;
height: 20px;
padding: 0 5px;
font-size: var(--d-lfs);
font-weight: 400;
field-sizing: content;
border: 0;
background: transparent;
box-shadow: none;
}
.sheet-sheet .pills input[data-slot="base"]:focus-visible { outline: none; }
.sheet-sheet .pills .sheet-number input[data-slot="base"] { min-width: 2.4em; text-align: center; }
.pills .sheet-list-item button[aria-label="Remove"] { padding: 0 4px 0 1px; }
.pills .sheet-list-item button[aria-label="Remove"]::after { font-size: 13px; }
.pills > .flex-wrap { margin: 0 !important; align-self: center; }
.pills > .flex-wrap > button[data-slot="base"] { height: 20px; padding: 0 6px; line-height: 1; }
@supports not (field-sizing: content) {
.pills .sheet-text .sheet-field-value { width: 72px; }
.pills .sheet-number .sheet-field-value { width: 32px; }
}
.sheet-note.chip { justify-self: start; }
/* Phones */
/* A little narrower than 1092px (a 1280px window): the same wide layout, with tighter spacing so nothing wraps. */
@container (max-width: 1080px) {
.head > div:last-child { column-gap: 12px; }
.meta > * { padding-left: calc(var(--d-pad) + 2px); padding-right: calc(var(--d-pad) + 2px); }
.card { padding-left: 9px; padding-right: 9px; }
.refs, .refgroup { column-gap: 6px; }
.defs { grid-template-columns: .85fr 2.25fr 1fr; }
.hpline { column-gap: 8px; }
.death { column-gap: 8px; }
}
/* Narrower still (a 1180px window, sheet about 890px): tighter again, still the wide layout. */
@container (max-width: 960px) {
.meta > * { padding-left: 5px; padding-right: 5px; }
.card { padding-left: 7px; padding-right: 7px; }
.defs { grid-template-columns: .75fr 2.6fr .85fr; }
.hpline, .death { column-gap: 6px; }
.adj input { width: 44px; }
.adj .sheet-button { padding-left: 6px; padding-right: 6px; letter-spacing: .02em; }
.now .sheet-number input { width: 60px; }
.strikes .row { grid-template-columns: 30px minmax(96px, 1fr) minmax(120px, auto) minmax(84px, .8fr) 1.4fr; }
}
/* Under 880px the header and the Attributes & Defenses row stop fitting side by side
(breakpoints from the approved mockup). */
@container (max-width: 880px) {
.head .meta.meta { margin: 0 !important; }
.head > div:last-child { grid-template-columns: 1fr; }
.meta, .facts { grid-column: 1; grid-row: auto; }
.meta > * { flex: 1 1 0; min-width: 0; }
/* The Level/XP strip and the Hit Points number get full width here, so they shrink to stay quiet. */
.meta > * { grid-template-rows: auto calc(var(--d-big) * 1.2); padding-top: 4px; padding-bottom: 4px; }
.meta .sheet-field-value { font-size: var(--d-big); }
.meta .sheet-number input { font-size: var(--d-big); height: calc(var(--d-big) * 1.15); }
.now .sheet-number input { font-size: calc(var(--d-hero) * .75); height: calc(var(--d-hero) * .75 + 4px); }
.max .sheet-field-value { font-size: calc(var(--d-hero) * .55); }
.top { grid-template-columns: 1fr; grid-template-rows: none; row-gap: var(--d-gap); }
.top > .attrs, .defs, .shieldrow, .iwrcond { grid-column: 1 !important; grid-row: auto !important; margin-left: 0; }
.shieldrow { flex-wrap: wrap !important; margin-bottom: var(--d-gap); }
.attrs { grid-template-columns: repeat(6, 1fr) !important; }
/* Hit Points on its own line, then a compact Armor Class beside the three saves, across. */
.defs { grid-template-columns: auto 1fr; grid-template-areas: "hp hp" "ac saves"; }
.ac { grid-area: ac; min-width: 120px; }
.hp { grid-area: hp; }
.saves { grid-area: saves; justify-content: center; }
.saves .srows > div { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 14px; }
.saves .srows > div > * { margin-top: 0 !important; }
.saves .srow { grid-template-columns: auto auto auto; justify-content: start; gap: 8px; }
/* The shield, then conditions and IWR, on one line. */
.top { grid-template-columns: auto 1fr; column-gap: 14px; }
.top > .attrs, .defs { grid-column: 1 / -1 !important; }
.shieldrow { grid-column: 1 !important; margin-bottom: 0; }
.iwrcond { grid-column: 2 !important; }
.top:not(:has(.shieldrow)) .iwrcond { grid-column: 1 / -1 !important; }
}
/* Under 820px Strikes and Actions, then Skills and the tabs, stack; each keeps its wide rows.
Proficiencies moves after the tabs. Stacked sections are as far apart as the sheet's own areas,
whose gap also has the renderer's space-y margin (8px) under it. */
@container (max-width: 820px) {
.mid, .pair { grid-template-columns: 1fr !important; row-gap: calc(var(--d-gap) + 18px) !important; }
.leftcol { display: contents; }
.profs { order: 1; }
}
/* Phones: rows fold into two lines and columns drop. */
@container (max-width: 620px) {
.meta > * { padding: 6px 4px; }
.meta .sheet-field-value { font-size: var(--d-big); }
.meta .sheet-tracker .sheet-field-value button { width: 14px; height: 14px; }
.meta .sheet-tracker .sheet-field-value > div > div:first-child { flex-wrap: nowrap; gap: 2px; }
.maintabs [data-slot="trigger"] { padding: 4px 8px; }
.row.th { display: none !important; }
.top { grid-template-columns: 1fr; }
.iwrcond { grid-column: 1 !important; }
/* The saves go back to a list beside Armor Class. */
.saves .srows > div { display: grid; grid-template-columns: 1fr; row-gap: 2px; }
.saves .srow { grid-template-columns: 1fr auto auto; justify-content: stretch; gap: 6px; }
.strikes .row { grid-template-columns: 22px 1fr auto; row-gap: 0; }
.strikes .row > :nth-child(4), .strikes .row > :nth-child(5) { grid-column: 2 / -1; font-size: var(--d-lfs); }
.spell { grid-template-columns: 22px 76px 1fr; row-gap: 0; }
.spell > :nth-child(n + 4) { grid-column: 3; font-size: var(--d-lfs); }
.inv, .sheet-tab:not(:has(.invcol)) .inv { grid-template-columns: 24px 1fr 30px 96px; }
.inv > :nth-child(5) { display: none; }
.bio { grid-template-columns: 1fr; }
/* On its own line, the portrait keeps about its desktop size. */
.portrait img { width: auto; max-width: 100%; max-height: 320px; margin: 0 auto; }
/* Edit keeps the play layout on a phone too; notes inputs stay narrow. */
.acts .note-in, .acts .note-in .sheet-field-value { width: 96px; }
.feat { grid-template-columns: 40px 24px 1fr auto; }
.sheet-tab { min-height: 0; }
}
/* In edit, a picked name's preview opens from a small eye beside its picker. */
.sheet-field-value:has(> .sheet-edit-preview) { display: flex; align-items: center; gap: 2px; }
.sheet-edit-preview { display: inline-flex; flex: none; }
.sheet-sheet .sheet-edit-preview .sheet-preview-trigger { display: inline-flex; flex: none; align-items: center; margin: 0; padding: 2px; border-radius: 4px; color: var(--st-ink-muted); text-decoration: none; }
.sheet-sheet .sheet-edit-preview .sheet-preview-trigger:hover { color: var(--st-primary); background: color-mix(in srgb, var(--st-primary) 7%, transparent); }
/* A build card's eye sits on its top edge, beside its ▾. */
.card .sheet-edit-preview { position: absolute; top: -7px; right: 22px; background: var(--st-panel); border-radius: 3px; }
.sheet-sheet .card .sheet-edit-preview .sheet-preview-trigger { padding: 0 1px; }
.card .sheet-edit-preview .iconify { width: 12px; height: 12px; }
/* A row's picker steps aside like the play name does, so its expanded preview is a full line under the row. */
.row > .sheet-ref.name, .row > .cell > .sheet-ref.name { display: contents; }
/* The portrait keeps its picture in edit, above the URL input. */
.portrait .sheet-image-frame > span { font-weight: 400; color: var(--st-ink-muted); }
About
- Owner
- soul
- ID
- pf2e-character-sheet
- Visibility
- Public
- System
- Pathfinder Second Edition
- Content type
- Character
- Default
- Yes
- Updated
- Oct 20, 2026
Preview
Shown with sample data. Changes made in the preview are never saved.
Sample Name
Ancestry
Heritage
Background
Class
Subclass
Other speeds
Sample kind 10 ft
Sample kind 10 ft
Attributes & Defenses
Key
Str
0
Dex
0
Con
0
Int
0
Wis
0
Cha
0
Armor Class
Sample Armor
Hit Points
/ 20
Temp
Dying
0 / 4
Wounded
0 / 3
Doomed
0 / 3
Saving Throws
Fortitude
U
Reflex
U
Will
U
HP
/ 10 (10)
Broken
IWR
Resist
Sample damage type 10
Sample damage type 10
Weak
Sample damage type 10
Sample damage type 10
Immune
Strikes
MAP −5 / −10 · agile −4 / −8
Weapon
Hit · MAP
Damage
Traits
◆
1d4 B
Sample notes
◆
1d4 B
Sample notes
Actions & Reactions
◆
Sample notes
◆
Sample notes
Skills
armor 10 on Str/Dex skills
Perception
Wis
U
Initiative
Acrobatics
Dex
U
Arcana
Int
U
Athletics
Str
U
Crafting
Int
U
Deception
Cha
U
Diplomacy
Cha
U
Intimidation
Cha
U
Medicine
Wis
U
Nature
Wis
U
Occultism
Int
U
Performance
Cha
U
Religion
Wis
U
Society
Int
U
Stealth
Dex
U
Survival
Wis
U
Thievery
Dex
U
Sample name
Int
U
Sample name
Int
U
Proficiencies
Attacks
U
Unarmed
U
Simple
U
Martial
U
Advanced
Defenses
U
Unarmored
U
Light
U
Medium
U
Heavy
Sample Class
Class DC
U
Key attribute
Str
Class features
Level
Feature
10
10
Deity
Deity
Divine font
HealHeal
Sanctification
Sample sanctification
Divine skill
Acrobatics
Favored weapon
Sample favored weapon
Domains
Sample domains 1Sample domains 2
Divine attributes
StrengthStrength
Edicts
Sample edicts
Anathema
Sample anathema
Level
Feat
Type
1
Ancestry
1
Ancestry
Bulk
20
20 / 10
Encumbered
Invested
0 / 10
pp
gp
sp
cp
Qty
Item
Bulk
Move
Worn
1
10
1
10
Arcane
Prepared
Spell DC
U
Attack
Spell
Range
Defense
Effect
Spells
—
Sample range
Sample defense
Sample damage
—
Sample range
Sample defense
Sample damage
Portrait
No image
Details
Pronouns
Sample pronouns
Age
Sample age
Height
Sample height
Weight
Sample weight
Appearance
Sample appearance
Personality
Personality
Sample personality
Relationships
Allies
Sample allies
Enemies
Sample enemies
Organizations
Sample organizations
Backstory
Notes