:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-synthesis: none;
  color-scheme: dark;
  --canvas: #1d1d1d;
  --sidebar: #171717;
  --surface: #232323;
  --recessed: #1e1e1e;
  --raised: #292929;
  --hover: #303030;
  --border: #373737;
  --control-border: #535353;
  --text: #dcdcdc;
  --bright: #eaeaea;
  --muted: #b1b1b1;
  --accent: #9eb3cf;
  --accent-fill: #394a61;
  --accent-hover: #43566e;
  --selected: #2b333e;
  --positive: #d1d1d1;
  --positive-bg: #303030;
  --warning: #e1c18e;
  --warning-bg: #3c3428;
  --info: #b4c8d7;
  --info-bg: #303b43;
  --danger: #e2afac;
  --danger-bg: #673d3c;
  --danger-hover: #7b4947;
  --danger-border: #765352;
  --progress-track: #3a302a;
  --progress-fill: #bd8c7a;
  --shadow: #10101080;
  color: var(--text);
  background: var(--canvas);
}
* { box-sizing: border-box; letter-spacing: 0; }
.overview { display: grid; gap: 0; }
.overview-details { display: grid; gap: 24px; min-width: 0; }
.overview-detail { min-width: 0; padding-top: 12px; }
.overview-detail .overview-section-heading { flex-wrap: wrap; }
.overview-detail small, .overview-scope { color: var(--muted); font-size: 12px; }
.overview-scope { margin: 0 0 24px; line-height: 1.8; }
.overview-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.overview-metric { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 8px; min-width: 0; padding: 16px 18px; text-align: left; background: var(--surface); border-color: var(--border); }
.overview-metric > svg { position: absolute; right: 16px; bottom: 17px; color: var(--muted); }
.metric-label { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.metric-label svg { color: var(--muted); }
.metric-value { font-size: 28px; line-height: 1.2; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--bright); overflow-wrap: anywhere; }
.overview-metric small { padding-right: 24px; color: var(--muted); font-size: 12px; }
.overview-band { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; margin-top: 24px; padding-block: 22px; border-top: 1px solid var(--border); }
.overview h2 { margin-bottom: 14px; }
.overview-status-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.overview-status-row { justify-content: flex-start; gap: 12px; padding: 10px 8px; border: 0; border-radius: 0; background: transparent; border-bottom: 1px solid var(--border); }
.overview-status-row strong { margin-left: auto; font-size: 20px; }
.overview-status-row > svg { color: var(--muted); }
.overview-shortcuts { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 12px; }
.overview-shortcuts h2 { flex-basis: 100%; margin-bottom: 12px; }
.overview-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.overview-section-heading h2 { margin: 0; }
@media (max-width: 1200px) { .overview-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .overview-metrics { gap: 12px; }
  .overview-metric { padding: 12px; gap: 7px; }
  .metric-label { gap: 6px; font-size: 12px; flex-wrap: wrap; }
  .metric-value { font-size: 27px; }
  .overview-metric > svg { display: none; }
  .overview-metric small { padding-right: 0; }
  .overview-band { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-block: 16px; }
  .overview-status-list { gap: 0 16px; }
}
body { margin: 0; line-height: 1.6; }
button, input, select { font: inherit; }
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 38px; padding: 8px 13px; border: 1px solid var(--border); border-radius: 7px;
  background: var(--surface); color: var(--text); font-size: 14px; font-weight: 500; line-height: 20px;
  cursor: pointer; text-decoration: none; white-space: normal;
}
button:hover, .button:hover { background: var(--hover); border-color: var(--control-border); color: var(--bright); }
button:disabled { opacity: .55; cursor: default; }
button svg, .button svg, .brand svg { flex-shrink: 0; }
button svg, .button svg { width: 18px; height: 18px; flex-basis: 18px; }
.access-authorize svg { color: var(--accent); }
.primary { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--bright); }
.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.danger { color: var(--danger); }
.primary.danger { background: var(--danger-bg); border-color: var(--danger-bg); color: var(--bright); }
.primary.danger:hover { background: var(--danger-hover); border-color: var(--danger-hover); }
.icon-only { width: 40px; height: 40px; min-height: 40px; padding: 10px; flex: 0 0 40px; }
.quiet { background: transparent; border-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, .table-scroll:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.layout { display: grid; grid-template-columns: 216px minmax(0, 1fr); min-height: 100dvh; }
aside {
  position: sticky; top: 0; height: 100dvh; min-width: 0; overflow: auto;
  display: flex; flex-direction: column; gap: 28px; padding: 30px 18px 22px;
  background: var(--sidebar); border-right: 1px solid var(--border); color: var(--text);
}
.brand { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 19px; line-height: 28px; font-weight: 650; color: var(--bright); white-space: nowrap; }
.brand svg { box-sizing: content-box; width: 21px; height: 21px; padding: 7px; border-radius: 8px; background: var(--selected); color: var(--accent); }
nav { display: grid; gap: 4px; }
.mobile-nav { display: none; }
nav button { justify-content: flex-start; gap: 10px; min-height: 40px; padding: 9px 12px; border: 0; background: transparent; color: var(--muted); font-weight: 400; }
nav button:hover { background: var(--hover); color: var(--bright); }
nav .selected, nav .selected:hover { background: var(--selected); color: var(--bright); font-weight: 650; box-shadow: inset 2px 0 var(--accent); }
.account { display: grid; gap: 6px; margin-top: auto; padding: 16px 10px 0; border-top: 1px solid var(--border); overflow-wrap: anywhere; }
.account strong { font-size: 14px; font-weight: 600; }
.account small { color: var(--muted); font-size: 12px; }
.account button { justify-content: flex-start; padding-left: 0; margin-top: 8px; font-size: 13px; color: var(--muted); }
.account button:hover { background: var(--hover); color: var(--bright); }
.workspace { min-width: 0; width: 100%; max-width: 1480px; margin-inline: auto; padding: 32px 38px 56px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
h1 { margin: 0; font-size: 26px; font-weight: 700; line-height: 1.35; color: var(--bright); }
h2 { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.45; }
h3 { margin: 28px 0 16px; font-size: 15px; font-weight: 600; line-height: 1.5; color: var(--bright); }
.heading-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.heading-actions small { font-size: 12px; color: var(--muted); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-height: 38px; margin-bottom: 12px; }
.toolbar-spacer { flex: 1; }
.toolbar > span { margin-right: auto; color: var(--muted); font-size: 13px; }
input, select { min-width: 0; max-width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid var(--control-border); border-radius: 6px; background: var(--recessed); color: var(--text); line-height: 20px; }
input::placeholder { color: var(--muted); }
input[readonly] { background: var(--raised); }
input[type=search] { width: 300px; }
input[type=checkbox] { width: 17px; height: 17px; min-height: 17px; padding: 0; margin: 0; accent-color: var(--accent); flex-shrink: 0; cursor: pointer; }
input[type=checkbox]:disabled { cursor: default; }
.search-field { display: flex; align-items: center; gap: 10px; width: 320px; max-width: 100%; min-width: 0; padding: 0 14px; border: 1px solid var(--control-border); border-radius: 6px; color: var(--muted); background: var(--recessed); }
.search-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px var(--selected); }
.search-field svg { width: 18px; height: 18px; flex: 0 0 18px; }
.search-field input[type=search] { width: 100%; min-height: 40px; padding: 10px 0; border: 0; outline: none; background: transparent; }
.table-scroll { width: 100%; overflow: auto; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
th { padding: 11px 14px; border-bottom: 1px solid var(--border); background: var(--recessed); font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
td { padding: 12px 14px; border-top: 1px solid var(--border); max-width: 260px; vertical-align: middle; line-height: 1.65; overflow-wrap: anywhere; }
th:first-child, td:first-child { padding-left: 16px; }
th:last-child, td:last-child { padding-right: 16px; text-align: right; }
td:last-child .stack { justify-items: end; }
td strong { font-size: 14px; font-weight: 600; color: var(--bright); }
tbody tr:hover { background: var(--raised); }
.service-selection { display: flex; align-items: center; gap: 14px; min-width: 0; cursor: pointer; }
.service-selection strong { overflow-wrap: anywhere; }
.mobile-page-selection { display: none; }
.selection-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: -8px 0 20px; padding: 10px 16px; border-left: 3px solid var(--accent); background: var(--selected); color: var(--text); font-size: 13px; }
.selection-bar button { min-height: 32px; padding: 6px 8px; font-size: 12px; }
code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
td code { font-size: 13px; color: var(--text); white-space: nowrap; }
.stack { display: grid; gap: 4px; }
.stack > .badge { justify-self: start; }
.node-table td { vertical-align: top; }
.stack small { font-size: 12px; font-weight: 400; color: var(--muted); overflow-wrap: anywhere; }
.stack > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.badge { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 8px; border-radius: 5px; background: var(--raised); color: var(--muted); font-size: 12px; font-weight: 500; line-height: 20px; white-space: nowrap; }
.badge.good { background: var(--positive-bg); color: var(--positive); }
.badge.warn { background: var(--warning-bg); color: var(--warning); }
.badge.blue { background: var(--info-bg); color: var(--info); }
.grant-actions { display: flex; justify-content: flex-end; gap: 8px; min-width: 88px; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 16px; min-height: 44px; padding-top: 12px; font-variant-numeric: tabular-nums; }
.pager small { margin-right: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.pager select { width: 116px; min-height: 36px; padding: 7px 9px; font-size: 12px; }
.page-controls, .page-numbers { display: flex; align-items: center; gap: 6px; }
.page-controls .icon-only, .page-number { width: 36px; height: 36px; min-height: 36px; flex: 0 0 36px; padding: 8px; border-radius: 5px; }
.page-number { border-color: transparent; background: transparent; font-size: 13px; }
.page-number.current { background: var(--selected); border-color: var(--control-border); color: var(--bright); font-weight: 600; }
.page-gap { width: 16px; color: var(--muted); text-align: center; }
.page-position { display: none; font-size: 13px; color: var(--muted); }
.page-jump { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.page-jump input { width: 54px; min-height: 36px; padding: 7px; text-align: center; }
.empty, .list-loading { display: flex; align-items: center; justify-content: center; min-height: 164px; border-top: 1px solid var(--border); color: var(--muted); }
.empty { flex-direction: column; gap: 12px; }
.empty svg { width: 24px; height: 24px; }
.empty p { margin: 0; }
.list-loading { gap: 12px; }
.spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.security-tabs { display: flex; flex-wrap: wrap; gap: 3px; margin-right: auto; }
.security-tabs button { border-color: transparent; color: var(--muted); background: transparent; }
.security-tabs .selected { border-color: transparent; background: var(--selected); color: var(--bright); font-weight: 600; }
.security-reason { display: block; min-width: 120px; max-width: 260px; white-space: normal; overflow-wrap: anywhere; }
.identity { display: grid; grid-template-columns: 144px minmax(0, 1fr); margin: 0; width: 100%; border-top: 1px solid var(--border); }
.identity dt, .identity dd { margin: 0; padding: 22px 0; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.identity dt { padding-right: 24px; color: var(--muted); font-size: 13px; }
.identity dd { font-size: 14px; }
.footnote { margin-top: 20px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.login { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; width: min(410px, 100%); margin: 0; padding: 30px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.login h1 { font-size: 24px; }
.login .button { width: 100%; }
.boot { padding: 80px 24px; color: var(--muted); text-align: center; }
dialog { width: min(720px, calc(100% - 40px)); max-height: calc(100dvh - 48px); padding: 0; overflow: auto; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 24px 80px var(--shadow); background: var(--surface); color: var(--text); }
dialog::backdrop { background: var(--shadow); }
dialog header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 24px; border-bottom: 1px solid var(--border); background: var(--surface); }
dialog footer { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 12px; padding: 14px 24px; border-top: 1px solid var(--border); background: var(--surface); }
.dialog-body { padding: 20px 24px; line-height: 1.7; overflow-wrap: anywhere; }
.field { display: grid; gap: 9px; margin-bottom: 16px; color: var(--muted); font-size: 13px; font-weight: 500; }
.field input, .field select { width: 100%; font-size: 14px; font-weight: 400; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 24px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.impact { margin-top: 20px; color: var(--warning); }
.members { display: grid; gap: 12px; }
.member-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 40px; gap: 10px; }
.notice { padding: 10px 14px; background: var(--raised); border-left: 3px solid var(--control-border); color: var(--text); font-size: 13px; line-height: 1.75; }
.dialog-body .toolbar { margin-top: 20px; }
.dialog-body pre { padding: 20px; background: var(--recessed); border-radius: 7px; font-size: 12px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.dialog-body .identity { grid-template-columns: 116px minmax(0, 1fr); }
.dialog-body .identity dt, .dialog-body .identity dd { min-width: 0; padding: 14px 0; font-size: 13px; }
.dialog-body .identity dt { padding-right: 16px; }
.dialog-body .identity code { white-space: normal; overflow-wrap: anywhere; }
.dialog-body .endpoint-table table, .dialog-body .runtime-table table { min-width: 0; table-layout: fixed; }
.dialog-body td, .dialog-body th { padding: 14px 10px; font-size: 12px; }
.dialog-body td:first-child, .dialog-body th:first-child { padding-left: 0; }
.dialog-body td:last-child, .dialog-body th:last-child { padding-right: 0; }
.quick-services { max-height: 360px; overflow: auto; border-top: 1px solid var(--border); }
.quick-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.quick-row .check { min-width: 0; margin: 0; }
.quick-row strong, .quick-result { min-width: 0; overflow-wrap: anywhere; }
.quick-row strong { font-size: 14px; font-weight: 600; }
.source-ip { font-size: 14px; font-weight: 600; color: var(--text); white-space: normal; overflow-wrap: anywhere; }
.quick-result { font-size: 12px; line-height: 1.7; color: var(--muted); }
.success-text { color: var(--positive); }
.metric-warning { color: var(--warning); }
.subtle { color: var(--muted); }
.dialog-body h3 { margin-block: 12px 6px; }
#notifications { position: fixed; right: 32px; bottom: 28px; z-index: 10; display: grid; gap: 12px; max-width: min(440px, calc(100% - 40px)); }
.toast { display: flex; align-items: flex-start; gap: 12px; padding: 18px 22px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); box-shadow: 0 8px 28px var(--shadow); font-size: 13px; overflow-wrap: anywhere; }
.toast svg { flex-shrink: 0; color: var(--positive); }
.toast.error { border-color: var(--danger-border); }
.toast.error svg { color: var(--danger); }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
@media (max-width: 1280px) {
  .layout { grid-template-columns: 200px minmax(0, 1fr); }
  aside { padding-inline: 16px; }
  .brand { font-size: 20px; gap: 10px; }
  .workspace { padding-inline: 28px; }
  .page-jump { display: none; }
  .pager { gap: 12px; }
}
@media (max-width: 1000px) {
  .layout { grid-template-columns: 200px minmax(0, 1fr); }
  aside { padding-inline: 14px; }
  .brand { font-size: 18px; gap: 8px; }
  .brand svg { width: 22px; height: 22px; padding: 6px; }
  .workspace { padding-inline: 22px; }
  .heading-actions small { display: none; }
  .page-numbers { display: none; }
  .page-position { display: inline-block; min-width: 52px; text-align: center; }
  th, td { padding-inline: 14px; }
}
@media (max-width: 640px) {
  .layout { display: block; }
  aside { position: static; height: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--border); overflow: visible; }
  .brand { font-size: clamp(15px, 4.4vw, 18px); gap: 6px; }
  .brand svg { width: 19px; height: 19px; padding: 6px; }
  nav, .account { display: none; }
  .mobile-nav { display: block; width: 100%; min-height: 38px; padding: 6px 8px; }
  .overview-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .overview-tabs button { justify-content: flex-start; }
  .workspace { padding: 22px 16px 40px; }
  .page-heading { gap: 12px; margin-bottom: 14px; }
  h1 { font-size: 25px; }
  .heading-actions { gap: 8px; }
  .toolbar { gap: 8px; margin-bottom: 12px; }
  .search-field { width: 100%; flex: 1 0 100%; }
  .toolbar > select { flex: 1; }
  .toolbar-spacer { display: none; }
  .security-tabs { flex-basis: 100%; }
  .mobile-page-selection { display: flex; margin-bottom: 20px; padding-inline: 16px; color: var(--muted); }
  .mobile-page-selection .check { font-size: 13px; }
  .pager { gap: 16px; justify-content: space-between; padding-top: 24px; }
  .pager small { margin-right: 0; }
  .page-controls { flex: 1 0 100%; justify-content: center; gap: 8px; }
  .list-surface .table-scroll, .grant-table { overflow: visible; }
  .list-surface table, .grant-table table { display: block; min-width: 0; }
  .list-surface thead, .grant-table thead { display: none; }
  .list-surface tbody, .grant-table tbody { display: block; }
  .list-surface tr, .grant-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; padding: 14px; border-top: 1px solid var(--border); }
  .list-surface tr:first-child, .grant-table tr:first-child { border-top: 0; }
  .list-surface td, .grant-table td { display: block; min-width: 0; max-width: none; padding: 0; border: 0; text-align: left; font-size: 13px; }
  .list-surface td::before, .grant-table td::before { content: attr(data-label); display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 400; }
  .list-surface td code, .grant-table td code { font-size: 12px; white-space: normal; overflow-wrap: anywhere; }
  .list-surface td:first-child, .grant-table td:first-child { grid-column: 1 / -1; }
  .list-surface td:last-child .stack { justify-items: start; }
  .list-surface .access-table td:first-child { grid-column: 1 / -1; align-self: center; }
  .list-surface .access-table td:nth-child(6) { grid-column: 1 / -1; justify-self: end; }
  .access-table td:first-child::before, .access-table td:nth-child(6)::before { display: none; }
  .access-table td:nth-child(6) button { gap: 6px; padding-inline: 10px; font-size: 12px; }
  .grant-actions { justify-content: flex-start; }
  .identity { grid-template-columns: 92px minmax(0, 1fr); }
  .identity dt, .identity dd { padding-block: 20px; font-size: 13px; }
  .identity dt { padding-right: 14px; }
  dialog { width: calc(100% - 32px); max-height: calc(100dvh - 32px); }
  dialog header, dialog footer, .dialog-body { padding: 20px; }
  dialog h2 { font-size: 18px; }
  dialog footer { gap: 10px; flex-wrap: wrap; }
  dialog footer button { flex: 1 1 auto; padding-inline: 10px; font-size: 13px; white-space: nowrap; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .member-row { grid-template-columns: minmax(0, 1fr) 40px; }
  .member-row input:first-child { grid-column: 1 / -1; }
  .dialog-body .identity { grid-template-columns: 96px minmax(0, 1fr); }
  .dialog-body .identity dt, .dialog-body .identity dd { font-size: 12px; }
  .dialog-body pre { padding: 16px; }
  .quick-row { gap: 16px; }
  .quick-row strong { font-size: 13px; }
  #notifications { right: 20px; bottom: 20px; }
  .login { padding: 22px; }
}

.blocked-chart { padding: 2px 0 8px; }
.blocked-chart-list { list-style: none; margin: 16px 0 4px; padding: 0; display: grid; gap: 14px; }
.blocked-chart-row { display: grid; gap: 6px; }
.blocked-chart-label { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.blocked-chart-label span { color: var(--muted); font-size: 13px; flex: 1; }
.blocked-chart-label strong { color: var(--danger); font-size: 14px; }
.blocked-chart progress { display: block; width: 100%; height: 10px; border: 0; border-radius: 8px; overflow: hidden; accent-color: var(--progress-fill); background: var(--progress-track); }
.blocked-chart progress::-webkit-progress-bar { background: var(--progress-track); border-radius: 8px; }
.blocked-chart progress::-webkit-progress-value { background: var(--progress-fill); border-radius: 8px; }
.blocked-chart progress::-moz-progress-bar { background: var(--progress-fill); border-radius: 8px; }
.blocked-chart-empty { color: var(--muted); padding: 12px 0; }

.overview-tabs { margin-bottom: 16px; padding: 3px 3px 8px; border-bottom: 1px solid var(--border); overflow-x: auto; flex-wrap: nowrap; }
.overview-tabs button { flex: 0 0 auto; white-space: nowrap; }

.overview { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.overview-tabs { min-width: 0; width: 100%; margin-right: 0; }
.overview > [role='tabpanel'] { min-width: 0; }

.source-overview { margin-bottom: 16px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.source-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.source-heading h2 { margin: 0 0 3px; color: var(--bright); }
.source-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.source-refresh { flex-shrink: 0; background: var(--surface); border-color: var(--control-border); }
.source-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.source-card { min-width: 0; display: grid; gap: 5px; padding: 11px 13px; border-radius: 7px; background: var(--recessed); }
.source-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.source-node { display: inline-flex; align-items: center; gap: 7px; color: var(--text); font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.source-node svg { width: 16px; height: 16px; color: var(--muted); }
.source-state-error { padding: 2px 7px; border-radius: 5px; color: var(--warning); background: var(--warning-bg); font-size: 12px; }
.source-address { color: var(--bright); font-size: 18px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.source-error { color: var(--warning); font-size: 13px; overflow-wrap: anywhere; }
.source-placeholder { display: flex; align-items: center; gap: 9px; margin: 0; padding: 16px 18px; border: 1px dashed var(--border); border-radius: 9px; color: var(--muted); background: var(--surface); font-size: 13px; }
@media (max-width: 640px) { .source-overview { padding: 13px; } .source-heading { flex-wrap: wrap; } .source-refresh { min-height: 36px; padding: 7px 12px; } .source-address { font-size: 18px; } }
.install-intro { margin: 0 0 22px; color: var(--muted); line-height: 1.75; }
.install-hint { margin: -8px 0 18px; color: var(--muted); font-size: 13px; }
.install-advanced { border: 1px solid var(--border); border-radius: 10px; background: var(--recessed); }
.install-advanced summary { cursor: pointer; padding: 14px 16px; color: var(--text); font-weight: 600; }
.install-advanced summary small { margin-left: 10px; color: var(--muted); font-weight: 400; }
.install-advanced-body { padding: 10px 16px 0; }
.install-step { margin-top: 20px; padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.install-step-head { display: flex; align-items: center; gap: 12px; }
.install-step-head > div { min-width: 0; flex: 1; }
.install-step-head h3 { margin: 0; color: var(--text); }
.install-step-head small { display: block; color: var(--muted); }
.install-step-number { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; background: var(--info-bg); color: var(--info); font-weight: 700; }
.install-step pre { margin: 14px 0 0; max-height: 240px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.install-copy { flex-shrink: 0; min-height: 36px; padding: 6px 10px; font-size: 12px; }
@media (max-width: 760px) {
  .table-scroll { border-radius: 8px; }
  .install-advanced summary small { display: block; margin: 4px 0 0 18px; }
  .install-step { padding: 12px; }
  .install-step-head { display: grid; grid-template-columns: 32px minmax(0, 1fr); }
  .install-copy { grid-column: 2; justify-self: start; margin-left: 0; }
}

.frp-view [role='tabpanel'] { min-width: 0; }
.frp-view .list-loading { gap: 12px; }
.frp-table td code { color: inherit; white-space: normal; overflow-wrap: anywhere; }
.frp-table td .stack small { color: var(--muted); }
.frp-key-page { display: grid; gap: 16px; }
.frp-key-instance { display: grid; gap: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.frp-key-heading, .frp-key-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.frp-key-heading h2 { margin: 0; font-size: 18px; }
.frp-key-actions, .frp-key-downloads { display: flex; flex-wrap: wrap; gap: 8px; }
.frp-key-counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 3px 7px; border-radius: 8px; background: var(--recessed); }
.frp-key-counts div { padding: 7px 9px; }
.frp-key-counts dt, .frp-key-meta, .frp-key-heading small, .frp-key-help p, .frp-key-empty small { color: var(--muted); }
.frp-key-counts dt { font-size: 12px; }
.frp-key-counts dd { margin: 4px 0 0; font-size: 21px; font-weight: 650; font-variant-numeric: tabular-nums; }
.frp-key-help { border-top: 1px solid var(--border); padding-top: 12px; }
.frp-key-help summary { cursor: pointer; width: fit-content; }
.frp-key-help p { margin: 8px 0 0; }
.frp-key-scopes { display: grid; gap: 5px; }
.frp-key-scopes span { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.frp-key-empty { min-height: 128px; border: 1px dashed var(--border); border-radius: 12px; }
.frp-key-page p.notice, .frp-key-page pre, .frp-key-page.dialog-body > p { margin: 0; }
@media (max-width: 660px) {
  .frp-key-instance { padding: 14px; }
  .frp-key-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.frp-detail-heading { font-size: 17px; margin: 0; }
.frp-detail { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 18px; margin: 0; }
.frp-detail dt { color: var(--muted); }
.frp-detail dd { margin: 0; overflow-wrap: anywhere; }
.frp-relation { padding: 10px 14px; margin-bottom: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.frp-relation code + code { margin-left: 8px; }

#app:has(.login) { display: grid; place-items: center; min-height: 100dvh; padding: 20px; }
.login .button { min-height: 42px; }
.quiet { color: var(--muted); }
.quiet:hover { color: var(--bright); }
.frp-key-summary-actions button:not(.primary) { background: transparent; }
.frp-key-row-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 4px; }
.frp-key-row-actions button { min-height: 34px; padding: 6px 9px; }
.frp-key-row-actions .danger { color: var(--muted); }
.frp-key-row-actions .danger:hover { color: var(--danger); background: var(--raised); }
.frp-key-counts div + div { border-left: 1px solid var(--border); }
.frp-key-meta code { color: var(--text); }
.frp-key-page .stack strong, .source-ip { color: var(--bright); }
.pager-single { min-height: 30px; padding-top: 8px; }
@media (max-width: 660px) {
  .frp-key-counts div:nth-child(odd) { border-left: 0; }
  .frp-key-counts div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .frp-key-row-actions { justify-content: flex-start; }
  .frp-key-row-actions button { min-height: 38px; }
  dialog .frp-detail { gap: 8px 12px; }
}
