/* Role-access mapping (spec 2026-11-08) — Settings screens + live ladder. */
.ram-panel { margin: 1.5rem 0; padding: 1rem 1.25rem; border: 1px solid rgba(120, 90, 40, 0.35); border-radius: 10px; background: rgba(255, 252, 245, 0.6); }
.ram-panel h3 { margin: 0 0 0.25rem; }
.ram-meta { margin: 0 0 0.75rem; opacity: 0.75; font-size: 0.9em; }
.ram-intro { font-weight: 600; }
.ram-note { font-size: 0.9em; opacity: 0.85; }
.ram-tabs { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.ram-tab { padding: 0.4rem 0.9rem; border-radius: 999px; border: 1px solid rgba(120, 90, 40, 0.45); background: transparent; cursor: pointer; font: inherit; }
.ram-tab-on { background: #7a1f1f; color: #fff; border-color: #7a1f1f; }
.ram-scroll { overflow-x: auto; }
.ram-table { border-collapse: collapse; min-width: 640px; }
.ram-table th, .ram-table td { border: 1px solid rgba(0, 0, 0, 0.12); padding: 0.3rem 0.45rem; text-align: center; font-size: 0.88em; }
.ram-table thead th { background: rgba(122, 31, 31, 0.08); }
.ram-table .ram-rolecol { text-align: left; white-space: nowrap; position: sticky; left: 0; background: #fdfaf3; z-index: 1; }
.ram-table .ram-capcol { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; max-width: 2.2rem; }
.ram-hcol { display: none; }
.ram-gtoggle { font-size: 0.8em; margin-left: 0.4rem; cursor: pointer; }
.ram-yes { color: #1d6b1d; font-weight: 700; }
.ram-no { opacity: 0.4; }
.ram-lock { color: #7a1f1f; font-weight: 700; white-space: nowrap; }
.ram-captionrow td { text-align: left; font-style: italic; opacity: 0.85; border-top: none; }
.ram-actions { display: flex; gap: 0.5rem; align-items: center; margin-top: 0.75rem; flex-wrap: wrap; }
.ram-btn { padding: 0.45rem 1rem; border-radius: 8px; border: 1px solid #7a1f1f; background: #7a1f1f; color: #fff; cursor: pointer; font: inherit; }
.ram-btn-quiet { background: transparent; color: inherit; border-color: rgba(0, 0, 0, 0.3); }
.ram-msg { font-size: 0.9em; }
.ram-confirm { margin-top: 0.75rem; padding: 0.75rem 1rem; border: 1px dashed rgba(122, 31, 31, 0.5); border-radius: 8px; }
.ram-changes { margin: 0.25rem 0 0.5rem; padding-left: 1.2rem; max-height: 240px; overflow-y: auto; }
.ram-warn { color: #8a5a00; }
.ram-history { margin-top: 0.75rem; }
.ram-histlist { padding-left: 1.2rem; }
.ram-histlist li { margin: 0.3rem 0; }
.access-cards-live .ram-caption { font-style: italic; opacity: 0.85; margin: 0.25rem 0 0.5rem; }

/* Item 33: placeholder where the retired static "Permission map" stood. */
.access-cards-retired {
  border: 1px dashed #d1d5db; border-radius: 10px; padding: 12px 14px;
  color: #374151; font-size: 14px; line-height: 1.45; background: #f9fafb;
}
