:root {
  --bg: #f7f7f8; --card: #fff; --text: #16181d; --muted: #6b7280; --line: #e4e5e9;
  --accent: #2f5bea; --warn-bg: #fff4e0; --warn: #9a5b00;
  font: 14px/1.45 system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1115; --card: #171a21; --text: #e6e8ec; --muted: #9aa1ad; --line: #2a2f39;
    --accent: #7c9bff; --warn-bg: #3a2a0c; --warn: #f5b84a; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); padding: 0 16px 48px; }
header { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 16px 0; }
h1 { font-size: 20px; margin: 0; }
h2 { font-size: 16px; margin: 0 0 12px; }
h3 { font-size: 15px; margin: 0 0 12px; }
h4 { font-size: 14px; margin: 0 0 8px; }
h5 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 6px; }
.subsection { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; }
.subsection > h3::before { content: "RolesAuthority › "; color: var(--muted); font-weight: 500; }
button { padding: 7px 14px; border: 0; border-radius: 6px; background: var(--accent); color: #fff; cursor: pointer; }
nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
nav button { background: var(--card); color: var(--text); border: 1px solid var(--line); }
nav button[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
#status { color: var(--muted); margin: 0 0 12px; }
main { display: grid; gap: 16px; }
section { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px; overflow-x: auto; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 6px 8px; border-top: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; border-top: 0; }
.role { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.role:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
code, .addr { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.label { color: var(--muted); margin-left: 6px; }
.warn { background: var(--warn-bg); color: var(--warn); border-radius: 6px; padding: 8px 10px; margin-bottom: 12px; }
.muted { color: var(--muted); }
.capabilities { list-style: none; padding: 0; margin: 0; }
.capabilities li { padding: 4px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.capabilities li:first-child { border-top: 0; }
