@font-face {
  font-family: 'Source Sans 3';
  src: url('/assets/source-sans-3-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 750;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #171a1f;
  --muted: #56636a;
  --line: #dce1e2;
  --teal: #006873;
  font: 16px/1.4 'Source Sans 3', 'Segoe UI', sans-serif;
  color: var(--ink);
  background: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 3px solid #07838b; outline-offset: 3px; border-radius: 3px; }
.ui-icon { flex: none; vertical-align: middle; }
.skip-link { position: absolute; top: -80px; z-index: 1; background: white; padding: 8px; }
.skip-link:focus { top: 0; }
.appbar { height: 64px; padding: 0 26px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 20px; background: white; }
.brand { display: flex; align-items: center; }
.brand img { display: block; width: 150px; height: auto; }
.appbar-product { font-weight: 600; font-size: 16px; border-left: 1px solid var(--line); padding-left: 20px; color: #404b52; }
.access-indicator { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; font-size: 13px; color: #47565c; }
.workspace { min-height: calc(100vh - 64px); display: grid; grid-template-columns: 231px minmax(0, 1fr); }
.sidebar { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--line); background: #f7f9f9; padding: 22px 12px 16px; }
.scope, .instance { display: flex; min-width: 0; align-items: center; gap: 10px; }
.scope { padding: 0 7px 21px; border-bottom: 1px solid var(--line); }
.scope-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border: 1px solid #d4e4e3; border-radius: 8px; color: #135e63; background: #e7f1ef; }
.scope div, .instance span { display: flex; flex-direction: column; min-width: 0; }
.scope strong { font-size: 16px; font-weight: 650; overflow-wrap: anywhere; }
.scope small, .instance small { font-size: 12px; line-height: 1.3; color: var(--muted); }
nav { display: grid; gap: 4px; margin-top: 18px; }
nav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; min-height: 38px; border-radius: 5px; color: #425058; font-size: 15px; }
nav a:hover { background: #eaf0ef; text-decoration: none; }
nav a[aria-current="page"] { background: #deeeeb; color: #075959; font-weight: 650; box-shadow: inset 3px 0 #16817f; }
.instance { padding: 18px 7px 0; border-top: 1px solid var(--line); margin-top: auto; color: var(--muted); }
.instance strong { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
main { min-width: 0; }
.content-wrap { width: 100%; max-width: 1460px; margin: 0 auto; padding: 30px clamp(24px, 3.6vw, 66px) 52px; }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: #55636b; font-size: 13px; }
.breadcrumb a { color: #536168; }
.breadcrumb span[aria-hidden] { color: #a1aaaf; }
.page-title { margin: 22px 0 26px; }
h1, h2 { color: var(--ink); }
h1 { margin: 0; font-weight: 650; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.13; letter-spacing: -.035em; }
h2 { margin: 0; font-size: 19px; font-weight: 650; letter-spacing: -.015em; }
.page-title p { margin: 8px 0 0; color: var(--muted); }
.summary-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-bottom: 26px; }
.summary-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 17px 20px 18px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; }
.summary-card:hover { text-decoration: none; border-color: #6e9796; }
.summary-label { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; }
.card-icon { display: inline-grid; place-items: center; width: 29px; height: 29px; border-radius: 7px; background: #fff2cf; color: #855803; }
.summary-card:nth-child(2) .card-icon { background: #e2f2ee; color: #23685f; }
.summary-card:nth-child(3) .card-icon { background: #efecfa; color: #685797; }
.summary-value { font-size: 38px; line-height: 1.12; letter-spacing: -.04em; font-weight: 600; margin-top: 10px; }
.summary-note { font-size: 13px; color: var(--muted); margin-top: 3px; }
.panel { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: white; margin-bottom: 20px; }
.panel-head { padding: 17px 20px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.panel-note { padding: 0 20px 16px; color: var(--muted); }
.text-link { font-size: 14px; font-weight: 600; }
.text-link span { margin-left: 4px; }
.table-scroll { max-width: 100%; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th { background: #f6f8f8; font-weight: 600; font-size: 13px; color: #56636a; padding: 9px 20px; border-block: 1px solid var(--line); white-space: nowrap; }
td { font-size: 15px; padding: 12px 20px; border-bottom: 1px solid #e9eded; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafcfb; }
.cell-title, .cell-note { display: block; }
.cell-title { font-weight: 600; }
.cell-note { font-size: 13px; color: var(--muted); }
.identity { color: var(--ink); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.avatar { display: grid; place-items: center; height: 26px; width: 26px; border-radius: 50%; font-size: 11px; font-weight: 650; background: #e8efee; color: #345958; }
.avatar[data-tone="1"] { background: #eee9f7; color: #675288; }
.avatar[data-tone="2"] { background: #faecdb; color: #745326; }
.badge { display: inline-flex; align-items: center; border: 1px solid #d6dedf; border-radius: 5px; color: #46555d; padding: 1px 7px; font-size: 13px; }
time { color: #59656b; font-size: 14px; white-space: nowrap; }
code { font: .85em ui-monospace,monospace; overflow-wrap: anywhere; }
dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; }
dt { color: var(--muted); } dd { margin: 0; }
.content-block { padding: 18px 20px; } .content-block h2 { margin-bottom: 12px; }
.content-block p, .content-block li { margin: 7px 0; } .content-block ul { padding-left: 18px; }
.record-search { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; margin: 12px 0 18px; }
.record-search label { display: grid; gap: 3px; color: var(--muted); font-size: 14px; }
.record-search input, .record-search select, .record-search button {
  min-height: 36px; max-width: 100%; border: 1px solid #bdc9ca; border-radius: 5px;
  padding: 6px 10px; background: white; color: var(--ink); font: inherit;
}
.record-search button { border-color: #006873; background: #006873; color: white; font-weight: 600; cursor: pointer; }
.record-search :focus-visible { outline: 3px solid #07838b; outline-offset: 2px; }
@media (max-width: 850px) {
  .workspace { grid-template-columns: 194px minmax(0,1fr); }
  .content-wrap { padding: 24px 20px 36px; }
  .summary-grid { gap: 8px; } .summary-card { padding: 13px 12px; }
  td, th { padding-inline: 13px; }
}
@media (max-width: 680px) {
  .appbar { height: 54px; padding: 0 15px; gap: 10px; }
  .brand img { width: 124px; } .appbar-product { font-size: 14px; padding-left: 10px; }
  .access-indicator { font-size: 12px; }
  .workspace { display: block; min-height: calc(100vh - 54px); }
  .sidebar { padding: 9px 14px 7px; border: 0; border-bottom: 1px solid var(--line); }
  .scope { border: 0; padding: 0; gap: 7px; } .scope-icon { width: 24px; height: 24px; border-radius: 5px; } .scope-icon svg { width: 16px; }
  .scope div { flex-direction: row; align-items: baseline; gap: 7px; } .scope strong { font-size: 14px; }
  nav { display: flex; flex-wrap: wrap; gap: 1px 3px; margin: 7px 0 0; }
  nav a { font-size: 13px; min-height: 30px; gap: 4px; padding: 4px 6px; } nav .ui-icon { width: 14px; }
  nav a[aria-current="page"] { box-shadow: none; }
  .instance { display: none; }
  .content-wrap { padding: 18px 15px 28px; }
  .page-title { margin: 14px 0 19px; } .page-title p { font-size: 14px; }
  .summary-grid { gap: 6px; margin-bottom: 16px; }
  .summary-card { padding: 10px 8px; border-radius: 6px; }
  .summary-label { gap: 0; font-size: 12px; } .card-icon { display: none; }
  .summary-value { font-size: 28px; } .summary-note { font-size: 11px; }
  .panel-head { padding: 12px; } h2 { font-size: 17px; } .text-link { font-size: 12px; }
  td, th { padding: 8px; } td { font-size: 13px; } .cell-note, time { font-size: 12px; }
  .identity { white-space: normal; } .identity .avatar { display: none; } time { white-space: normal; }
}
@media (max-width: 370px) { .appbar-product { display: none; } }

body[data-family="settings"] {
  --ink: #212429; --muted: #59616b; --line: #dee0df; --teal: #304f85;
  background: #fbfbfa; color: var(--ink); min-height: 100vh;
}
.settings-bar { border-block: 4px solid #e2aa32; border-bottom: 1px solid #333b44; color: white; background: #202831; }
.settings-bar-inner { max-width: 1180px; margin: auto; padding: 16px 30px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.settings-brand { display: flex; gap: 13px; align-items: center; color: white; font-weight: 650; font-size: 1.18rem; }
.settings-status { color: #d2dce9; font: .87rem ui-monospace, monospace; }
.settings-workspace { max-width: 1180px; padding: 44px 30px 60px; margin: auto; display: grid; grid-template-columns: minmax(160px,230px) minmax(0,1fr); gap: clamp(26px,5vw,80px); }
.settings-menu { min-width: 0; }
.settings-node { font: .84rem ui-monospace, monospace; overflow-wrap: anywhere; color: var(--muted); }
.settings-menu nav { display: grid; padding: 0; margin-top: 12px; gap: 2px; }
.settings-menu nav a { font-size: 1rem; }
.settings-menu nav a[aria-current="page"] { background: #e6ebf3; color: #233e68; box-shadow: inset 3px 0 #47678c; }
.settings-main > header { border-bottom: 2px solid #303640; margin: 0 0 26px; padding: 0 0 16px; }
.settings-main > header h1 { font-size: clamp(1.9rem,3vw,2.6rem); }
.settings-main > header p { margin: 5px 0 0; color: var(--muted); }
.settings-group, .settings-main .panel { border-radius: 3px; }
.settings-main .panel-head { background: #f1f1ed; }
.settings-rows { list-style: none; margin: 0; padding: 0; }
.settings-rows li { border-top: 1px solid var(--line); }
.settings-rows a { display: grid; grid-template-columns: 1fr auto 12px; padding: 19px 20px; align-items: center; gap: 14px; }
.settings-rows a:hover { background: #f6f6f2; }
.settings-key { font-weight: 650; text-transform: capitalize; }
.settings-value { font-variant-numeric: tabular-nums; color: var(--muted); }
.settings-main .record-search button { background: #304f85; border-color: #304f85; }
@media (max-width:740px) {
  .settings-bar-inner { padding: 12px 16px; }
  .settings-workspace { display: block; padding: 18px 15px 40px; }
  .settings-menu nav { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 24px; }
  .settings-menu nav a { font-size: .9rem; padding: 5px 8px; }
  .settings-rows a { padding: 15px 12px; gap: 8px; }
}
