:root {
 color-scheme: dark;
 --bg: #101117;
 --panel: #181a24;
 --line: #343747;
 --text: #f3f2f9;
 --muted: #bcbed1;
 --violet: #cab7ff;
 --violet-bg: #a988fa;
 --coral: #ffa7b1;
 font-family: Inter, system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.55; }
a { color: var(--violet); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.skip { position: absolute; top: -60px; }
.skip:focus { top: 10px; padding: 8px; background: var(--bg); }
.top { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; padding: 18px clamp(16px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.brand { color: var(--text); font-weight: 750; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.mark { width: 13px; height: 13px; transform: rotate(45deg); border: 2px solid var(--violet-bg); border-radius: 3px; }
.language { margin-left: auto; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
main { width: min(1280px, 100%); padding: 22px clamp(14px, 4vw, 44px) 32px; margin: auto; min-height: 70vh; }
footer { text-align: center; padding: 20px; color: var(--muted); font-size: .85rem; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.18; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.7rem, 4vw, 2.55rem); }
h2 { font-size: clamp(1.2rem, 2vw, 1.48rem); }
h3 { font-size: 1.08rem; }
p { margin: .4rem 0 1rem; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding: 0 0 12px; margin-bottom: 22px; }
.nav a { color: var(--muted); padding: 7px 11px; text-decoration: none; border-radius: 6px; }
.nav a[aria-current=page] { background: #302645; color: var(--violet); }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.page-heading form { margin: 0; }
.section { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: clamp(14px, 3vw, 25px); margin: 0 0 16px; overflow-wrap: anywhere; }
.intro { margin: clamp(18px, 7vw, 80px) auto 24px; max-width: 680px; }
.intro p { max-width: 58ch; }
.error, .notice { padding: 12px 15px; border-radius: 8px; background: #31283e; }
.error { border-left: 3px solid var(--coral); color: var(--coral); }
.muted { color: var(--muted); }
.badge { display: inline-block; color: var(--violet); border: 1px solid #705a9c; border-radius: 20px; padding: 3px 9px; }
.cards, .link-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.cards article, .link-list article { border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.cards strong { font-size: 1.23rem; font-variant-numeric: tabular-nums; }
.person + .person, .batch + .batch { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
form { margin: 10px 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr)); column-gap: 16px; align-items: start; }
.wide { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: 5px; margin: 0 0 10px; color: var(--text); }
.language label { margin: 0; }
input, textarea, select, button, .button { font: inherit; }
input, textarea, select { width: 100%; padding: 7px 10px; border: 1px solid #585b73; border-radius: 6px; background: #111219; color: var(--text); }
.language select { width: auto; }
textarea { min-height: 88px; resize: vertical; }
input[type=checkbox] { width: auto; height: 18px; }
.check { flex-direction: row; align-items: center; gap: 8px; }
button, .button { display: inline-block; cursor: pointer; color: var(--text); text-decoration: none; padding: 7px 13px; border: 1px solid #62667e; border-radius: 6px; background: #262939; }
button:hover, .button:hover { background: #39324d; }
.primary { background: var(--violet-bg); border-color: var(--violet-bg); color: #151020; font-weight: 660; }
.primary:hover { background: var(--violet); }
.copy { display: flex; align-items: end; gap: 8px; overflow: hidden; }
.copy label { flex: 1; min-width: 0; margin: 0; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-variant-numeric: tabular-nums; }
th, td { padding: 9px 12px; vertical-align: top; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: .9rem; }
td code { font-size: .82em; }
table pre { white-space: pre-wrap; word-break: break-word; min-width: 180px; }
details { margin: 8px 0; }
summary { cursor: pointer; color: var(--violet); }
.preserve { white-space: pre-wrap; }
.qr { display: block; padding: 6px; background: white; max-width: 100%; }
.secret { display: inline-block; margin: 7px 0; }
.codes { padding-left: 18px; overflow-wrap: anywhere; }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 13px; }
@media (max-width: 550px) {
 .language { margin: 0; }
 .top { gap: 8px 12px; }
 .nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
 .nav a { flex: none; white-space: nowrap; }
 .language select { max-width: 140px; }
 th, td { padding: 7px; }
}

.financial-moves th:first-child, .financial-moves td:first-child,
.financial-moves td:last-child { white-space: nowrap; }
