:root {
  font-size: 100%;
  color-scheme: light dark;
  line-height: 1.5;
  --font-sans: system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  --bg: #f5f4f0;
  --surface: #ffffff;
  --surface-raised: #fbfaf7;
  --surface-sunken: #f7f6f2;
  --line: #e4e2dc;
  --line-soft: #efede8;
  --field-line: #cfcbc2;
  --text: #17191d;
  --text-2: #4f555e;
  --text-3: #62686f;
  --link: #7f5c10;
  --chip: #f1efea;
  --chip-text: #3b4048;
  --button: #17191d;
  --button-text: #ffffff;
  --brass: #d4a24c;
  --brass-hover: #e0b25e;
  --brass-ink: #121418;
  --brass-soft: #f6ecd6;
  --brass-soft-line: #e9d5a8;
  --brass-soft-text: #6b4d0e;
  --brass-tint: #fbf6ea;
  --focus: #c8973a;
  --focus-ring: rgb(212 162 76 / 32%);
  --ok: #1e6b45;
  --ok-soft: #e4f1e9;
  --ok-line: #bfdcc9;
  --ok-dot: #2e8b57;
  --warn: #8a4b00;
  --warn-soft: #fcefd9;
  --warn-line: #efd9b4;
  --warn-strong: #5c3a06;
  --warn-dot: #d97706;
  --bad: #a4231a;
  --bad-soft: #fbe9e7;
  --bad-line: #efc5c0;
  --bad-dot: #c8372d;
  --off: #8f8a80;
  --side: #121418;
  --side-raised: #1f242b;
  --side-sunken: #181b20;
  --side-line: #262b33;
  --side-text: #c9cdd4;
  --side-soft: #a7aeb8;
  --side-muted: #8e96a2;
  --side-strong: #f5f4f0;
  --kind-mssql: #2b579a;
  --kind-mssql-soft: #e6ecf7;
  --kind-mssql-dot: #7fa3e0;
  --kind-postgres: #24657a;
  --kind-postgres-soft: #e3eef1;
  --kind-postgres-dot: #6fb3c4;
  --kind-winrm: #4a45b0;
  --kind-winrm-soft: #ecebfa;
  --kind-winrm-dot: #a9a4f2;
  --kind-ssh: #3a6b2e;
  --kind-ssh-soft: #e7f0e4;
  --kind-ssh-dot: #8dc07f;
  --kind-http: #8a5a12;
  --kind-http-soft: #f5ecdd;
  --kind-http-dot: #d9a860;
  --kind-graph: #7b3f8c;
  --kind-graph-soft: #f2e8f4;
  --kind-graph-dot: #c98fd8;
  --tone-0: #1f4e8c;
  --tone-0-soft: #dce6f8;
  --tone-1: #1e6b45;
  --tone-1-soft: #ddefe4;
  --tone-2: #8a3f12;
  --tone-2-soft: #f7e4d8;
  --tone-3: #4a4f57;
  --tone-3-soft: #eceae4;
  --shadow: 0 1px 2px rgb(18 20 24 / 5%);
  --shadow-raised: 0 18px 44px rgb(18 20 24 / 18%);
  --radius: 12px;
  --radius-small: 9px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1114;
    --surface: #171a1e;
    --surface-raised: #1c2025;
    --surface-sunken: #14171a;
    --line: #2a2f37;
    --line-soft: #23272d;
    --field-line: #3d434d;
    --text: #eceef1;
    --text-2: #b8bec7;
    --text-3: #9aa1ab;
    --link: #e2b866;
    --chip: #23272e;
    --chip-text: #d3d7dd;
    --button: #eceef1;
    --button-text: #111316;
    --brass-soft: #33280f;
    --brass-soft-line: #5b4520;
    --brass-soft-text: #f1d08a;
    --brass-tint: #1e1a11;
    --focus-ring: rgb(212 162 76 / 40%);
    --ok: #7ed3a4;
    --ok-soft: #14301f;
    --ok-line: #24503a;
    --warn: #f2b866;
    --warn-soft: #33250f;
    --warn-line: #5b4520;
    --warn-strong: #f5cf94;
    --bad: #f29a90;
    --bad-soft: #3a1714;
    --bad-line: #5e2a24;
    --off: #7a7f88;
    --kind-mssql: #9db8ea;
    --kind-mssql-soft: #1b2638;
    --kind-postgres: #86c6d6;
    --kind-postgres-soft: #14292e;
    --kind-winrm: #b3aef5;
    --kind-winrm-soft: #1f1e3a;
    --kind-ssh: #a2cf94;
    --kind-ssh-soft: #182816;
    --kind-http: #e2b866;
    --kind-http-soft: #2d2312;
    --kind-graph: #d3a5df;
    --kind-graph-soft: #2a1c2e;
    --tone-0: #a9c3f0;
    --tone-0-soft: #1b2638;
    --tone-1: #8fd3ad;
    --tone-1-soft: #16301f;
    --tone-2: #f0b48e;
    --tone-2-soft: #33200f;
    --tone-3: #c9cdd4;
    --tone-3-soft: #2a2f37;
    --shadow: none;
    --shadow-raised: 0 18px 44px rgb(0 0 0 / 50%);
  }
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
}
main {
  min-width: 0;
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.25;
}
h1 {
  font-size: 1.75rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}
h2 {
  font-size: 1.0625rem;
  font-weight: 650;
}
h3 {
  font-size: 0.9375rem;
  font-weight: 650;
}
p {
  margin: 0;
}
a {
  color: var(--link);
  text-underline-offset: 0.18em;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
code,
pre,
.mono {
  font-family: var(--font-mono);
  font-size: 0.875em;
  overflow-wrap: anywhere;
}
code {
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
  background: var(--chip);
  color: var(--chip-text);
}
pre {
  margin: 0;
  padding: 0.75rem 0.875rem;
  border-radius: var(--radius-small);
  border: 1px solid var(--line);
  background: var(--surface-sunken);
  overflow-x: auto;
  white-space: pre-wrap;
}
.icon {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
form {
  display: grid;
  gap: 0.875rem;
  margin: 0;
}
label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.875rem;
  font-weight: 600;
}
label small,
fieldset small,
.help {
  display: block;
  color: var(--text-3);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.45;
}
input,
select,
textarea,
button {
  font: inherit;
  color: inherit;
}
input,
select,
textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  border: 1.5px solid var(--field-line);
  border-radius: var(--radius-small);
  background: var(--surface);
  color: var(--text);
  font-weight: 400;
}
textarea {
  min-height: 5.5rem;
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 3px var(--focus-ring);
  outline: none;
}
input[type='checkbox'],
input[type='radio'] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.15rem 0 0;
  flex: none;
  accent-color: var(--button);
}
label:has(> input[type='checkbox']),
label:has(> input[type='radio']) {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 500;
}
fieldset {
  display: grid;
  gap: 0.875rem;
  min-width: 0;
  margin: 0;
  padding: 1rem 1.125rem 1.125rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
legend {
  padding: 0 0.375rem;
  font-weight: 650;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0 1rem;
  border: 1px solid var(--field-line);
  border-radius: var(--radius-small);
  background: var(--surface);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
button:hover,
.button:hover {
  background: var(--surface-sunken);
}
button.primary,
.button.primary {
  border-color: var(--button);
  background: var(--button);
  color: var(--button-text);
}
button.primary:hover,
.button.primary:hover {
  opacity: 0.9;
}
button.danger,
.button.danger {
  border-color: var(--bad-line);
  color: var(--bad);
}
button.ghost,
.button.ghost {
  border-color: transparent;
  background: transparent;
}
button.small,
.button.small {
  min-height: 2.125rem;
  padding: 0 0.75rem;
  font-size: 0.8125rem;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
th {
  padding: 0.6rem 0.875rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-raised);
  color: var(--text-3);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-align: left;
  text-transform: uppercase;
}
td {
  padding: 0.7rem 0.875rem;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: middle;
}
tbody tr:last-child td {
  border-bottom: 0;
}
td form {
  margin: 0;
}
.skip-link {
  position: absolute;
  top: 0.75rem;
  left: -100vw;
  z-index: 10;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-small);
  background: var(--surface);
}
.skip-link:focus {
  left: 0.75rem;
}
.shell {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  min-height: 100vh;
  background: linear-gradient(to right, var(--side) 15rem, var(--bg) 15rem);
}
.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  height: 100vh;
  padding: 1.125rem 0.75rem 0.875rem;
  overflow-y: auto;
  background: var(--side);
  color: var(--side-text);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.125rem 0.375rem;
}
.brand-mark {
  width: 1.875rem;
  height: 1.875rem;
  flex: none;
}
.brand-mark rect {
  fill: var(--brass);
}
.brand-mark path {
  fill: none;
  stroke: var(--brass-ink);
  stroke-width: 2.3;
  stroke-linecap: round;
}
.brand-mark circle {
  fill: var(--brass-ink);
}
.brand-name {
  color: var(--side-strong);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.version {
  margin-left: auto;
  white-space: nowrap;
  padding: 0.1rem 0.35rem;
  border: 1px solid var(--side-line);
  border-radius: 5px;
  color: var(--side-muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
}
.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.625rem;
  border-radius: var(--radius-small);
  background: var(--brass);
  color: var(--brass-ink);
  font-size: 0.875rem;
  font-weight: 650;
  text-decoration: none;
}
.cta:hover {
  background: var(--brass-hover);
}
.nav ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-item,
.nav-sub-item {
  display: flex;
  align-items: center;
  border-radius: 8px;
  color: var(--side-text);
  text-decoration: none;
}
.nav-item {
  gap: 0.7rem;
  min-height: 2.375rem;
  padding: 0 0.625rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.nav-item .icon {
  color: var(--side-muted);
}
.nav-item:hover,
.nav-sub-item:hover {
  background: var(--side-sunken);
  color: var(--side-strong);
}
.nav-item[aria-current='page'] {
  background: var(--side-raised);
  color: var(--side-strong);
}
.nav-item[aria-current='page'] .icon {
  color: var(--brass);
}
.nav .nav-sub {
  gap: 1px;
  padding: 0.125rem 0 0.5rem;
}
.nav-sub-item {
  gap: 0.625rem;
  min-height: 1.875rem;
  padding: 0 0.625rem 0 2.4rem;
  color: var(--side-soft);
  font-size: 0.8125rem;
}
.nav-sub-item[aria-current='page'] {
  background: var(--side-sunken);
  color: var(--side-strong);
}
.nav-count {
  margin-left: auto;
  color: var(--side-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}
.nav-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: #3a2a14;
  color: #f2b866;
  font-size: 0.7rem;
  font-weight: 650;
}
.nav-badge .icon {
  width: 0.7rem;
  height: 0.7rem;
  color: inherit;
}
.kind-dot {
  width: 0.45rem;
  height: 0.45rem;
  flex: none;
  border-radius: 2px;
  background: var(--side-muted);
}
.sidebar-foot {
  display: grid;
  gap: 0.625rem;
  margin-top: auto;
}
.vault-status {
  display: grid;
  gap: 0.2rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--side-line);
  border-radius: 10px;
  background: var(--side-sunken);
  text-decoration: none;
}
.status-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #e6e8eb;
  font-size: 0.8125rem;
  font-weight: 650;
}
.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  flex: none;
  border-radius: 50%;
  background: var(--side-muted);
}
.vault-status.is-ready .status-dot {
  background: #3fb37f;
  box-shadow: 0 0 0 3px rgb(63 179 127 / 18%);
}
.vault-status.is-unavailable .status-dot {
  background: #e0803a;
}
.status-detail {
  color: var(--side-muted);
  font-size: 0.75rem;
}
.operator {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.25rem 0.25rem 0 0.375rem;
}
.avatar {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: #2a2f37;
  color: #e6e8eb;
  font-size: 0.75rem;
  font-weight: 650;
}
.operator-text {
  display: grid;
  flex: 1;
  min-width: 0;
}
.operator-email {
  overflow: hidden;
  color: #e6e8eb;
  font-size: 0.8125rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.operator-text a {
  color: var(--side-muted);
  font-size: 0.75rem;
  text-decoration: none;
}
.operator-text a:hover,
.operator-text a[aria-current='page'] {
  color: var(--side-strong);
}
.operator form {
  display: block;
}
.icon-button {
  width: 2rem;
  min-height: 2rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--side-muted);
}
.icon-button:hover {
  background: var(--side-sunken);
  color: var(--side-strong);
}
.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.top-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 3.75rem;
  padding: 0 2rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  color: var(--text-3);
  font-size: 0.875rem;
  list-style: none;
}
.crumbs li + li::before {
  margin-right: 0.5rem;
  color: var(--off);
  content: '/';
}
.crumbs a {
  color: var(--text-3);
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--text);
}
.crumbs [aria-current='page'] {
  color: var(--text);
  font-weight: 600;
}
.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}
.lock-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.25rem;
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.lock-chip.is-unlocked {
  border-color: var(--brass-soft-line);
  background: var(--brass-soft);
  color: var(--brass-soft-text);
}
.content {
  display: grid;
  align-content: start;
  gap: 1.25rem;
  width: 100%;
  max-width: 80rem;
  padding: 1.75rem 2rem 3rem;
}
.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
}
.page-head > div:first-child {
  display: grid;
  flex: 1 1 30rem;
  gap: 0.375rem;
  min-width: 0;
}
.page-head > div.cell-with-tile:first-child {
  display: flex;
  align-items: center;
  gap: 1rem;
}
h1.mono {
  font-size: 1.625rem;
  letter-spacing: -0.01em;
}
.intro {
  max-width: 56rem;
  color: var(--text-2);
  font-size: 0.9375rem;
}
.page-actions {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-left: auto;
}
.page-actions form {
  display: block;
}
body.plain {
  display: grid;
  min-height: 100vh;
  padding: 3rem 1rem;
  place-items: start center;
}
.plain-main {
  display: grid;
  gap: 1.25rem;
  width: 100%;
  max-width: 32rem;
}
.plain-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.plain-card {
  display: grid;
  gap: 1rem;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.plain-card h2 {
  font-size: 1.375rem;
  letter-spacing: -0.01em;
}
.plain-card form > button {
  justify-self: stretch;
}
.card {
  display: grid;
  align-content: start;
  gap: 1rem;
  min-width: 0;
  padding: 1.25rem 1.375rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.card.flush {
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.card.flush > .card-head {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem;
}
.card-head > div:first-child {
  display: grid;
  flex: 1;
  gap: 0.25rem;
  min-width: 0;
}
.card-actions {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.card-note,
.muted {
  color: var(--text-3);
  font-size: 0.8125rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1.25rem;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1rem;
}
.stack {
  display: grid;
  gap: 1rem;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.toolbar form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.spacer {
  margin-left: auto;
}
.error,
.notice,
.attention {
  padding: 0.75rem 1rem;
  border: 1px solid;
  border-radius: 10px;
  font-size: 0.875rem;
}
.error {
  border-color: var(--bad-line);
  background: var(--bad-soft);
  color: var(--bad);
}
ul.error {
  padding-left: 2rem;
}
.notice {
  border-color: var(--ok-line);
  background: var(--ok-soft);
  color: var(--ok);
}
.attention {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  border-color: var(--warn-line);
  background: var(--warn-soft);
  color: var(--warn-strong);
}
.attention a {
  color: inherit;
}
.field-error {
  color: var(--bad);
  font-size: 0.8125rem;
  font-weight: 600;
}
.pill,
.tag {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  font-size: 0.75rem;
  font-weight: 650;
  white-space: nowrap;
}
.pill {
  gap: 0.375rem;
  padding: 0.125rem 0.6rem;
  border-radius: 999px;
  background: var(--chip);
  color: var(--text-2);
}
.pill::before {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--off);
  content: '';
}
.pill-ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.pill-ok::before {
  background: var(--ok-dot);
}
.pill-bad {
  background: var(--bad-soft);
  color: var(--bad);
}
.pill-bad::before {
  background: var(--bad-dot);
}
.pill-warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.pill-warn::before {
  background: var(--warn-dot);
}
.tag {
  gap: 0.3rem;
  padding: 0.1rem 0.5rem;
  border-radius: 6px;
  background: var(--chip);
  color: var(--chip-text);
}
.tag .icon {
  width: 0.8rem;
  height: 0.8rem;
}
.tag-amber {
  background: var(--warn-soft);
  color: var(--warn);
}
.tag-green {
  background: var(--ok-soft);
  color: var(--ok);
}
.tag-brass {
  background: var(--brass-soft);
  color: var(--brass-soft-text);
}
.tag-red {
  background: var(--bad-soft);
  color: var(--bad);
}
.field-chip {
  padding: 0.05rem 0.45rem;
  border-radius: 5px;
  background: var(--chip);
  color: var(--chip-text);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  white-space: nowrap;
}
.sealed {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgb(235 207 142 / 18%);
  background: repeating-linear-gradient(135deg, #1c1f24 0 5px, #272b32 5px 10px);
  color: #ebcf8e;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
}
.sealed .icon {
  width: 0.8rem;
  height: 0.8rem;
  stroke-width: 2.1;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}
.kind-tile {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: none;
  place-items: center;
  border-radius: 8px;
  background: var(--chip);
  color: var(--text-2);
}
.kind-tile.small {
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 6px;
}
.kind-tile.small .icon {
  width: 0.8rem;
  height: 0.8rem;
}
.kind-tile.large {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 12px;
}
.kind-tile.large .icon {
  width: 1.6rem;
  height: 1.6rem;
}
.monogram {
  display: inline-grid;
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  place-items: center;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--tone-0-soft);
  color: var(--tone-0);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.monogram.large {
  width: 2.5rem;
  height: 2.5rem;
  font-size: 0.8125rem;
}
.monograms {
  display: inline-flex;
}
.monograms .monogram + .monogram {
  margin-left: -0.375rem;
}
.kind-tile.kind-mssql {
  background: var(--kind-mssql-soft);
  color: var(--kind-mssql);
}
.kind-dot.kind-mssql,
.kind-mark.kind-mssql {
  background: var(--kind-mssql-dot);
}
.kind-tile.kind-postgres {
  background: var(--kind-postgres-soft);
  color: var(--kind-postgres);
}
.kind-dot.kind-postgres,
.kind-mark.kind-postgres {
  background: var(--kind-postgres-dot);
}
.kind-tile.kind-winrm {
  background: var(--kind-winrm-soft);
  color: var(--kind-winrm);
}
.kind-dot.kind-winrm,
.kind-mark.kind-winrm {
  background: var(--kind-winrm-dot);
}
.kind-tile.kind-ssh {
  background: var(--kind-ssh-soft);
  color: var(--kind-ssh);
}
.kind-dot.kind-ssh,
.kind-mark.kind-ssh {
  background: var(--kind-ssh-dot);
}
.kind-tile.kind-http {
  background: var(--kind-http-soft);
  color: var(--kind-http);
}
.kind-dot.kind-http,
.kind-mark.kind-http {
  background: var(--kind-http-dot);
}
.kind-tile.kind-graph {
  background: var(--kind-graph-soft);
  color: var(--kind-graph);
}
.kind-dot.kind-graph,
.kind-mark.kind-graph {
  background: var(--kind-graph-dot);
}
.monogram.tone-1 {
  background: var(--tone-1-soft);
  color: var(--tone-1);
}
.monogram.tone-2 {
  background: var(--tone-2-soft);
  color: var(--tone-2);
}
.monogram.tone-3 {
  background: var(--tone-3-soft);
  color: var(--tone-3);
}
.kind-mark {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  flex: none;
  border-radius: 2px;
  background: var(--off);
}
dl.kv {
  display: grid;
  grid-template-columns: minmax(6rem, 9rem) minmax(0, 1fr);
  margin: 0;
}
dl.kv dt,
dl.kv dd {
  margin: 0;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line-soft);
}
dl.kv dt {
  color: var(--text-3);
  font-size: 0.8125rem;
}
dl.kv dd {
  overflow-wrap: anywhere;
}
dl.kv > :nth-last-child(-n + 2) {
  border-bottom: 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0;
  padding: 0;
}
.stat {
  display: grid;
  align-content: start;
  gap: 0.25rem;
  padding: 1rem 1.25rem;
  border-right: 1px solid var(--line-soft);
}
.stat:last-child {
  border-right: 0;
}
.stat-label {
  color: var(--text-3);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.stat-value {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.empty {
  padding: 1.5rem;
  color: var(--text-3);
  text-align: center;
}
.tabs,
.filters {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
}
.tabs {
  border-bottom: 1px solid var(--line);
}
.tabs a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.tabs a[aria-current='page'] {
  border-bottom-color: var(--text);
  color: var(--text);
  font-weight: 650;
}
.filters {
  flex-wrap: wrap;
  gap: 0.5rem;
}
.filters a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.125rem;
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.filters a[aria-current='page'] {
  border-color: var(--button);
  background: var(--button);
  color: var(--button-text);
}
.count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
}
.cell-main {
  display: grid;
  gap: 0.125rem;
  min-width: 0;
}
.cell-sub {
  color: var(--text-3);
  font-size: 0.8125rem;
}
.cell-with-tile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
tr.group-row td {
  padding-block: 0.5rem;
  background: var(--surface-sunken);
  color: var(--text);
  font-weight: 650;
}
.switch-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-weight: 500;
}
input[type='checkbox'].switch {
  position: relative;
  width: 2.75rem;
  height: 1.625rem;
  margin: 0;
  border-radius: 999px;
  background: var(--off);
  cursor: pointer;
  appearance: none;
}
input[type='checkbox'].switch::before {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 25%);
  content: '';
}
input[type='checkbox'].switch:checked {
  background: var(--button);
}
input[type='checkbox'].switch:checked::before {
  left: calc(100% - 1.25rem - 3px);
}
.codes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.scopes {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.risk {
  padding: 0.05rem 0.4rem;
  border-radius: 5px;
  background: var(--bad-soft);
  color: var(--bad);
  font-size: 0.72rem;
}
.warning,
.actions-note {
  padding: 0.75rem 1rem;
  border: 1px solid var(--warn-line);
  border-radius: 10px;
  background: var(--warn-soft);
  color: var(--warn-strong);
  font-size: 0.875rem;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.card.narrow {
  max-width: 32rem;
}
.form-row {
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  align-items: end;
}
.agent-card {
  display: grid;
  align-content: start;
  gap: 0.875rem;
  min-width: 0;
  padding: 1rem 1.125rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
}
.agent-card h3 {
  font-size: 0.9375rem;
}
.agent-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.agent-foot:empty {
  display: none;
}
.strong {
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
}
a.strong:hover {
  text-decoration: underline;
}
.clamp {
  max-width: 22rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bad {
  color: var(--bad);
  font-weight: 600;
}
.cell-sub.warn {
  color: var(--warn);
  font-weight: 600;
}
.computers td {
  vertical-align: top;
}
.computers th {
  white-space: nowrap;
}
.choices {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 0.75rem;
}
.choice {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1.125rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
}
.choice:hover {
  border-color: var(--text);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.choice-title {
  font-size: 0.9375rem;
  font-weight: 650;
}
.choice-text {
  color: var(--text-2);
  font-size: 0.8125rem;
}
.choice-meta {
  color: var(--link);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}
.target-form {
  gap: 1rem;
}
.fields {
  display: grid;
  gap: 0.875rem;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}
.grants {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.grant {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.grant form {
  margin-left: auto;
}
.grow {
  flex: 1;
}
.matrix th:not(:first-child),
.matrix td:not(:first-child) {
  text-align: center;
}
.matrix th .cell-with-tile {
  justify-content: center;
}
.square {
  display: inline-grid;
  width: 1.625rem;
  height: 1.625rem;
  place-items: center;
  border: 1.5px solid var(--off);
  border-radius: 7px;
  background: var(--surface);
}
.square.is-granted {
  border-color: var(--button);
  background: var(--button);
  color: var(--button-text);
}
.square .icon {
  width: 0.95rem;
  height: 0.95rem;
  stroke-width: 2.6;
}
.square-button {
  width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
}
.square-button:hover .square {
  border-color: var(--text);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.trail-end {
  padding: 0.875rem 1.25rem;
}
.search-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
}
.search-form label {
  flex: 1 1 20rem;
}
details > summary {
  width: fit-content;
  color: var(--link);
  cursor: pointer;
  font-size: 0.875rem;
}
details[open] > summary {
  margin-bottom: 0.875rem;
}
.item-rows {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.item-row {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(0, 1.4fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--line-soft);
}
.item-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: none;
  place-items: center;
  border-radius: 8px;
  background: var(--chip);
  color: var(--text-2);
}
.item-chosen {
  display: grid;
  gap: 0.625rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface-sunken);
}
small.warn {
  color: var(--warn);
  font-weight: 600;
}
.checks {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.checks li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  overflow-wrap: anywhere;
}
.checks li > .icon {
  margin-top: 0.1rem;
}
.check-ok > .icon {
  color: var(--ok);
}
.check-bad > .icon {
  color: var(--bad);
}
.check-problem {
  color: var(--bad);
}
@media (max-width: 640px) {
  .item-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
  }
}
@media (max-width: 960px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
    background: var(--bg);
  }
  .sidebar {
    position: static;
    gap: 0.75rem;
    height: auto;
    padding: 0.75rem;
    overflow: visible;
  }
  .nav > ul {
    display: flex;
    overflow-x: auto;
  }
  .nav .nav-sub {
    display: none;
  }
  .sidebar-foot {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    margin-top: 0;
  }
  .top-bar {
    position: static;
    padding: 0.5rem 1rem;
  }
  .content {
    padding: 1.25rem 1rem 2rem;
  }
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px), (pointer: coarse) {
  input,
  select,
  button {
    min-height: 44px;
  }
  .nav-item,
  .nav-sub-item,
  .lock-chip {
    min-height: 44px;
  }
  form a,
  p > a:only-child {
    display: inline-block;
    padding-block: 0.625rem;
  }
}
@media (max-width: 640px) {
  body.plain {
    padding: 1.5rem 0.75rem;
  }
  .plain-card {
    padding: 1.25rem;
  }
  form > button {
    justify-self: stretch;
    width: 100%;
  }
  .page-actions {
    margin-left: 0;
  }
  dl.kv {
    grid-template-columns: minmax(0, 1fr);
  }
  dl.kv dt {
    padding-bottom: 0;
    border-bottom: 0;
  }
  .codes {
    grid-template-columns: minmax(0, 1fr);
  }
  table,
  tbody,
  tr {
    display: block;
  }
  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  tr {
    margin: 0.75rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
  }
  td {
    display: flex;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.3rem 0;
    border-bottom: 0;
    overflow-wrap: anywhere;
  }
  td::before {
    flex: 0 0 7rem;
    color: var(--text-3);
    content: attr(data-label);
    font-weight: 600;
  }
  td > * {
    min-width: 0;
  }
  td[data-label='']::before {
    content: none;
  }
  td:empty {
    display: none;
  }
  td form {
    width: 100%;
    margin-block: 0.25rem 0;
  }
  td button {
    width: 100%;
  }
  tr.group-row {
    margin-block: 1rem 0;
    padding: 0;
    border: 0;
  }
  tr.group-row td {
    background: transparent;
  }
}
