.card { background: rgba(18, 26, 44, .95); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 1rem; }
.stack-sm > * + * { margin-top: .65rem; }
.stack-lg > * + * { margin-top: 1.1rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); }

.btn { display: inline-block; border: 0; border-radius: 12px; cursor: pointer; text-decoration: none; padding: .65rem 1rem; font-weight: 700; }
.btn-primary { color: #fff; background: linear-gradient(90deg, #6d7bff, #c15cff); }
.btn-soft { color: #fff; background: rgba(255,255,255,.1); }

.toggle { display: inline-flex; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; padding: .2rem; background: rgba(255,255,255,.04); }
.toggle button { border: 0; background: transparent; color: #b8c0d8; padding: .5rem .8rem; border-radius: 10px; cursor: pointer; font-weight: 700; }
.toggle .active { color: #fff; background: linear-gradient(90deg, #6d7bff, #c15cff); }

.character-image { width: 100%; height: 220px; object-fit: cover; border-radius: 12px; }
.muted { color: #b8c0d8; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th,td { padding: .55rem .45rem; border-bottom: 1px solid rgba(255,255,255,.08); text-align: left; }
th { color: #b8c0d8; text-transform: uppercase; font-size: .8rem; }

.macro-grid { display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap:.5rem; }
.macro-grid .cell { background: rgba(255,255,255,.06); padding: .55rem; border-radius: 10px; text-align:center; }
