#char-sheet .cs-portrait { float: right; margin: 0 0 var(--app-space-md) var(--app-space-lg); max-width: min(16rem, 40%); }
#char-sheet .cs-portrait img { width: 100%; height: auto; border-radius: var(--app-radius-md, 0.5rem); box-shadow: 0 1px 4px rgba(0,0,0,.25); }
#char-sheet .cs-toolbar { margin-bottom: var(--app-space-sm); }
#char-sheet .cs-badge { display: inline-block; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: .1rem .5rem; border-radius: 999px; background: var(--app-color-bg-subtle, #eee); color: var(--app-color-fg-muted); vertical-align: middle; }
#char-sheet .cs-record h1:first-child { margin-block-start: 0; }
/* The ability-scores table is markdown-rendered (no class to hook), so style
   it here. The generation log is the shared .osg-log-table (site.css). */
#char-sheet .cs-record table { border-collapse: collapse; margin-block: var(--app-space-sm); font-size: 0.92rem; }
#char-sheet .cs-record th, #char-sheet .cs-record td { border: 1px solid var(--app-color-border, #ddd); padding: 0.3rem 0.6rem; text-align: left; }
#char-sheet .cs-record thead th { background: color-mix(in srgb, var(--app-color-fg) 6%, transparent); font-weight: 600; }
#char-sheet .cs-log { margin-block-start: var(--app-space-lg); }
.cs-facts { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; margin: var(--app-space-sm) 0; }
.cs-facts dt { font-weight: 600; color: var(--app-color-fg-muted); }
.cs-facts dd { margin: 0; }
#char-sheet table.cs-abilities { border-collapse: collapse; margin: var(--app-space-sm) 0; }
#char-sheet table.cs-abilities th, #char-sheet table.cs-abilities td { border: 1px solid var(--app-color-border, #ddd); padding: .25rem .6rem; text-align: center; }
#char-sheet .cs-prose { max-width: 42rem; }
#char-sheet::after { content: ""; display: block; clear: both; }
