/* RPG Desk Basic Sheet: a layout that goes from the narrow panel (350 px) to the big window */
.header { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 10px; }
.portrait { width: 104px; height: 104px; flex: none; }
.identity { flex: 1 1 260px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.name { font-size: 18px; font-weight: 500; width: 100%; }

.resources { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 8px; }
.resource { background: var(--rd-bg-2); border: 1px solid var(--rd-line); border-radius: 6px; padding: 6px 8px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--rd-muted); }
.resource input[type='number'] { width: 4.2em; }
/* the resource label is discreet; the numbers typed in it are not */
.resource input { color: var(--rd-text); }
.bar { height: 6px; background: var(--rd-bg-3); border-radius: 3px; overflow: hidden; }
.fill { height: 100%; width: 0; transition: width 0.25s; }
.health .fill { background: #d9534f; }
.energy .fill { background: #4c8dff; }

.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 4px 16px; }
.columns .wide { grid-column: 1 / -1; }
.rows input[type='number'] { width: 4.2em; }
.rows .damage { width: 6em; }
.remove { padding: 2px 8px; }
.footer { margin-top: 10px; justify-content: space-between; align-items: center; }
textarea { min-height: 6em; }
