:root {
  color-scheme: light;
  font-family: "Inter", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif;
  color: #252a33;
  background: #fff;
  --blue: #2454ae;
  --nav-bg: #f3f6fc;
  --selected: #e1eafa;
  --muted: #535e6d;
  --line: #d9dfe7;
  --control: #8490a0;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='none' stroke='%23485160' stroke-width='1.6'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; grid-template-columns: 13.5rem minmax(0, 1fr); line-height: 1.5; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button { padding: 0; border: 0; background: transparent; }
button:disabled { cursor: default; opacity: .5; }
a, .person-name { color: var(--blue); text-decoration: underline; text-underline-offset: .15em; }
a:hover, .person-name:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #111; outline-offset: 2px; box-shadow: 0 0 0 3px #ffd43d; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: -8rem; z-index: 4; background: #fff; padding: .6rem 1rem; }
.skip:focus { top: .5rem; }
.icon { display: block; width: 1.05rem; height: 1.05rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, p { margin: 0; }

.sidebar { position: sticky; top: 0; align-self: start; height: 100dvh; overflow: auto; display: flex; flex-direction: column; background: var(--nav-bg); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .45rem; padding: 1.2rem .9rem; font-size: 1rem; font-weight: 700; color: #203652; white-space: nowrap; }
.brand img { width: 1.65rem; height: 1.65rem; }
.views { padding: .4rem .5rem 1rem; }
.view { display: flex; align-items: center; gap: .65rem; width: 100%; min-height: 2.55rem; padding: .35rem .7rem; border-radius: 4px; font-size: .9375rem; text-align: left; }
.view:hover { background: #e9eef7; }
.view .icon { width: 1.1rem; height: 1.1rem; color: #496998; }
.view .count { margin-left: auto; font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.view[aria-pressed="true"] { background: var(--selected); color: #1a478e; font-weight: 650; }
.view[aria-pressed="true"] :is(.icon,.count) { color: inherit; }
.nav-label { border-top: 1px solid #d8e0ed; margin: .9rem .65rem .35rem; padding-top: 1rem; color: var(--muted); font-size: .8125rem; }

main { min-width: 0; padding-inline: clamp(1.25rem, 2.4vw, 2.5rem); padding-bottom: 2rem; }
.page-heading, .toolbar, .button, .table-footer, .pages, .dialog-head, .icon-button { display: flex; align-items: center; }
.page-heading, .table-footer, .dialog-head { justify-content: space-between; gap: .75rem; }
.page-heading { min-height: 4.6rem; padding-block: .85rem; border-bottom: 1px solid var(--line); }
h1 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 700; line-height: 1.4; }
h2 { font-size: 1.25rem; }
.button { justify-content: center; min-height: 2.375rem; gap: .4rem; padding: .35rem .85rem; border: 1px solid var(--control); border-radius: 4px; background: #fff; font-size: .875rem; font-weight: 600; white-space: nowrap; }
.button:hover:enabled, .icon-button:hover, .page:hover:enabled { background: #f1f4f8; }
.toolbar { gap: .75rem; flex-wrap: wrap; padding-block: 1rem; }
.search-wrap { display: inline-flex; position: relative; align-items: center; width: min(22rem, 48%); }
.search-wrap .icon { color: var(--muted); position: absolute; left: .7rem; pointer-events: none; }
.search-wrap input, .filter select { border: 1px solid var(--control); border-radius: 4px; background-color: #fff; }
.search-wrap input { width: 100%; height: 2.375rem; padding: .4rem .65rem .4rem 2.1rem; font-size: .9375rem; }
input::placeholder { color: #5d6876; opacity: 1; }
.filter { display: none; }
.filter select { appearance: none; background-image: var(--chevron); background-repeat: no-repeat; background-position: right .55rem center; }
.filter select { min-height: 2.375rem; padding: .35rem 1.8rem .35rem .6rem; font-size: .875rem; }

.table-frame { position: relative; border: 1px solid var(--line); }
.table-frame::before, .table-frame::after { content: ""; position: absolute; inset-block: 0; width: .6rem; z-index: 1; pointer-events: none; opacity: 0; }
.table-frame::before { left: 0; background: linear-gradient(to right, #23365730, transparent); }
.table-frame::after { right: 0; background: linear-gradient(to left, #23365730, transparent); }
.table-frame.more-left::before, .table-frame.more-right::after { opacity: 1; }
.scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.scroll:focus-visible { outline-offset: -4px; }
table { border-collapse: collapse; width: 100%; min-width: 61rem; table-layout: fixed; font-size: .875rem; }
th, td { padding: .52rem .7rem; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
thead { background: #f3f5f8; }
thead th { border-bottom: 1px solid #647080; font-weight: 650; color: #3e4753; font-size: .875rem; vertical-align: middle; white-space: nowrap; }
thead th + th { border-left: 1px solid #dee3eb; }
thead th:nth-child(1) { width: 3.2rem; }
thead th:nth-child(2) { width: 19%; }
thead th:nth-child(3) { width: 7.75rem; }
thead th:nth-child(4) { width: 22%; }
thead th:nth-child(5) { width: 18%; }
tbody :is(th, td) { border-bottom: 1px solid var(--line); }
tbody tr:last-child :is(th, td) { border-bottom: 0; }
tbody tr:hover { background: #f4f8fe; }
.ordinal, .number { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
td.ordinal, td.contact { color: #404954; }
.sort { display: inline-flex; align-items: center; gap: .2rem; font-weight: inherit; white-space: nowrap; }
.sort:hover { text-decoration: underline; }
.sort .icon { width: .85rem; height: .85rem; }
th[aria-sort] .icon { color: var(--blue); }
th[aria-sort="ascending"] .icon { transform: rotate(180deg); }
.person-name { font-weight: 600; text-align: left; overflow-wrap: anywhere; }
.dash { color: var(--muted); }
.table-footer { min-height: 3.5rem; padding-block: .65rem; font-size: .875rem; color: var(--muted); }
.pages { gap: .2rem; }
.page { display: grid; place-items: center; min-width: 2rem; height: 2rem; border: 1px solid transparent; border-radius: 3px; font-variant-numeric: tabular-nums; }
.page[aria-current="page"] { border-color: #9faec6; background: #f0f4fb; color: #163c80; font-weight: 600; }
.empty { padding: 2rem 1rem; text-align: center; border-bottom: 1px solid var(--line); color: var(--muted); }
.empty .button { margin: .8rem auto 0; }

dialog { width: min(35rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); margin: auto; overflow: auto; padding: 1.25rem 1.5rem; color: inherit; border: 1px solid #a7afbb; border-radius: 6px; box-shadow: 0 8px 32px #16263e28; }
dialog::backdrop { background: #18202e70; }
.dialog-head { border-bottom: 1px solid var(--line); padding-bottom: .7rem; margin-bottom: 1rem; }
#live-note { font-size: .9375rem; }
#references { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .6rem 1rem; font-size: .875rem; }
#references dt { color: var(--muted); }
#references dd { margin: 0; overflow-wrap: anywhere; }
.icon-button { justify-content: center; width: 2rem; height: 2rem; border-radius: 3px; flex-shrink: 0; }
.snapshot-date { margin-left: auto; color: var(--muted); font-size: .8125rem; white-space: nowrap; }
.footnote { color: var(--muted); font-size: .8125rem; }
.contact-label { display: block; color: var(--muted); font-size: .75rem; }
@media (max-width: 62rem) {
  body { display: block; }
  .sidebar { position: static; height: auto; display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: .5rem; padding: .4rem 1rem; overflow: visible; border: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: .35rem 0; }
  .views { display: none; }
  .filter { display: inline-block; }
  main { padding-inline: 1rem; }
  .search-wrap { width: min(20rem, 42%); }
}
@media (max-width: 42rem) {
  .sidebar { padding: .35rem .75rem; }
  .brand { gap: .3rem; font-size: .9rem; }
  .brand img { width: 1.4rem; height: 1.4rem; }
  main { padding-inline: .75rem; }
  .page-heading { min-height: 3.75rem; padding-block: .7rem; }
  .toolbar { display: grid; grid-template-columns: 1fr auto; gap: .5rem; padding-block: .7rem; }
  .search-wrap { grid-column: 1/-1; width: 100%; }
  .snapshot-date { font-size: .75rem; }
  .filter select { width: 100%; }
  table { min-width: 67rem; }
  table .ordinal { display: none; }
  thead th:nth-child(2), .account { position: sticky; left: 0; z-index: 1; width: 10rem; box-shadow: inset -1px 0 var(--line); }
  thead th:nth-child(2) { border-left: 0; background-color: #f3f5f8; }
  .account { background: #fff; }
  tbody tr:hover .account { background: #f4f8fe; }
  dialog { padding: 1rem; }
}
@media (max-width: 23rem) {
  .toolbar { grid-template-columns: minmax(0, 1fr) auto; }
  .filter select { padding-left: .35rem; font-size: .8125rem; }
}
@media (forced-colors: active) {
  .view[aria-pressed="true"], .page[aria-current="page"] { outline: 2px solid Highlight; outline-offset: -2px; }
}
