.member-panels { display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.sidebar > .member-panels { grid-column: 1 / -1; width: 100%; }
.sidebar > .personal-token-button { grid-column: 1 / -1; width: 100%; min-height: 44px; flex-shrink: 0; }
.member-panel { display: flex; align-items: flex-start; flex-shrink: 0; width: 100%; gap: .35rem; padding: 5px 9px; border: 1px solid var(--line); border-radius: .5rem; background: var(--panel); }
.character-viewer { font-size: 11px; gap: 4px; }
.character-viewer select { min-width: 0; padding: 8px; }
.character-empty { padding: 10px; font-size: 12px; color: var(--muted); }
.character-panel-content { display: flex; flex-direction: column; gap: .35rem; min-width: 0; flex: 1; }
.character-status-header { display: grid; grid-template-columns: minmax(0, 1fr) 180px; align-items: stretch; gap: .25rem; }
.character-portrait-frame { position: relative; min-width: 0; min-height: 0; background: #ddd; border-radius: 5px; overflow: hidden; }
.character-portrait { display: block; position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 5px; object-fit: cover; }
.member-panel .character-portrait-button { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; }
.character-status-summary { display: flex; flex: 1; flex-direction: column; align-items: stretch; gap: .25rem; min-width: 0; }
.character-panel-name { overflow-wrap: anywhere; font-size: 12px; }
.character-assignment { color: var(--muted); }
.member-panel .stress-add { align-self: center; }
.stress-remove { flex-shrink: 0; }
.stress-tracks { display: grid; gap: 2px; }
.stress-track { display: flex; align-items: center; gap: .5rem; }
.stress-track > input { width: 80px; flex-shrink: 0; min-width: 0; padding: 3px; font-size: 12px; }
.stress-track > span { width: 80px; flex-shrink: 0; overflow-wrap: anywhere; font-size: 12px; }
.stress-boxes { display: grid; grid-template-columns: repeat(5, 22px); flex: 1; min-width: 0; gap: 4px; align-content: center; }
.stress-boxes-wrapped { grid-template-columns: repeat(5, 20px); }
.stress-boxes input { width: 22px; height: 22px; margin: 0; accent-color: var(--accent); }
.stress-boxes-wrapped input { width: 20px; height: 20px; }
.stress-settings { border: 1px solid var(--line); border-radius: 4px; padding: 0 .5rem; }
.character-skills-bar { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
.member-panel .character-skills-bar button[aria-pressed=true] { box-shadow: inset 0 0 0 1px var(--accent); }
.character-skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 8px; min-width: 0; }
.character-skill-row { display: grid; grid-template-columns: minmax(0, 1fr) 2.5rem; gap: 3px; align-items: center; min-width: 0; }
.character-skill-row input { width: 100%; min-width: 0; padding: 3px 5px; font-size: 13px; }
.character-skill-row input[type=number] { appearance: textfield; text-align: right; font-variant-numeric: tabular-nums; }
.character-skill-row input[type=number]::-webkit-inner-spin-button { appearance: none; }
.member-panel .character-skill-picker { grid-template-columns: minmax(0, 1fr) auto; min-width: 0; min-height: 26px; width: 100%; text-align: left; overflow-wrap: anywhere; background: transparent; font-size: 13px; }
.character-skill-picker span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
@media (pointer: coarse) {
  .member-panel .character-skill-row input { min-height: 44px; font-size: 16px; }
  .member-panel .character-skill-picker { min-height: 44px; }
  .member-panel .character-skills-bar button { min-width: 44px; min-height: 44px; }
}
.member-panel details summary { cursor: pointer; padding: 7px 0; }
.member-panel details p { margin: .35rem 0; color: var(--muted); }
.member-panel details { font-size: 12px; }
.member-panel details label { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .5rem 0; }
.member-panel details input[type=number] { width: 65px; }
.member-panel input[type=file] { max-width: 200px; }
.member-panel strong { margin-right: 5px; font-size: 12px; white-space: normal; overflow-wrap: anywhere; }
.member-panel button { min-width: 32px; min-height: 32px; padding: 4px; border-radius: 4px; background: #354039; color: var(--text); }
.member-panel button:hover:not(:disabled) { background: #465347; }
.member-panel output { min-width: 2ch; text-align: center; font-variant-numeric: tabular-nums; }
/* The native buttons are the triangles, not rectangular buttons with tiny glyphs. */
.character-counters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; width: 180px; max-width: 100%; align-self: flex-end; }
.fate-counter { --counter-color: #b49ad8; display: grid; grid-template-columns: 44px auto minmax(0, 1fr) 44px; align-items: center; justify-items: center; align-content: start; gap: 4px; min-width: 0; padding: 4px; }
.money-editor { display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 8px; min-width: 0; margin: 0; padding: 4px; color: #9dc99e; text-align: center; font-size: 19px; font-weight: 650; }
.member-panel .money-amount { box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; padding: 3px; border: 1px solid #557b58; border-radius: 4px; background: transparent; box-shadow: none; color: #9dc99e; font-size: 19px; font-weight: 650; font-variant-numeric: tabular-nums; }
.member-panel .money-amount:focus-visible { outline: 2px solid #9dc99e; outline-offset: 1px; }
.fate-counter-label { min-height: 22px; display: grid; place-items: center; text-align: center; color: var(--counter-color); font-size: 19px; font-weight: 650; line-height: 1.2; }
.money-counter .fate-counter-label { font-size: 17px; }
.member-panel .fate-counter output { display: grid; place-items: center; width: 100%; min-width: 0; min-height: 36px; padding: 3px 0; color: var(--counter-color); font-size: 19px; font-weight: 650; line-height: 1.2; overflow-wrap: anywhere; }
/* Smaller 14×28px triangles retain a true 90-degree tip. */
.member-panel .fate-counter .counter-triangle { display: block; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 0; background: var(--counter-color); clip-path: polygon(calc(50% - 7px) calc(50% - 14px), calc(50% + 7px) 50%, calc(50% - 7px) calc(50% + 14px)); touch-action: manipulation; }
.member-panel .fate-counter .counter-down { clip-path: polygon(calc(50% + 7px) calc(50% - 14px), calc(50% + 7px) calc(50% + 14px), calc(50% - 7px) 50%); }
.member-panel .fate-counter button:hover:not(:disabled) { background: #e0d9ec; }
.member-panel .money-counter button:hover:not(:disabled) { background: #d3ecd4; }
.member-panel .fate-counter button:focus-visible { background: #fff; outline: 0; }
.member-panel .fate-counter button:disabled { opacity: .35; }
.character-row { display: grid; gap: .6rem; padding: .8rem 0; border-bottom: 1px solid var(--border, #777); }
.character-name { overflow-wrap: anywhere; }
.character-row label { display: grid; gap: .3rem; }
.character-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.character-actions button { min-height: 2.5rem; }
@media (min-width: 650px) { .character-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; } .character-actions { grid-column: 1 / -1; } }
@media (pointer: coarse) { .member-panel button { min-width: 44px; min-height: 44px; } .member-panel details summary { min-height: 44px; display: list-item; align-content: center; } }
