:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #20383e;
  background: #f4f7f8;
  font-size: 14px;
  --ink: #16333b;
  --muted: #667e85;
  --teal: #087e80;
  --border: #dce5e7;
  --nav: #102e36;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  border: 1px solid var(--border);
  background: white;
  color: var(--ink);
  border-radius: 7px;
  padding: 9px 14px;
  font-weight: 600;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
button:hover {
  background: #edf4f4;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button.primary {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}
button.primary:hover {
  background: #066769;
}
button.danger {
  color: #b03439;
  border-color: #e7bdc0;
}
button.quiet {
  background: transparent;
  border-color: transparent;
}
button.small {
  padding: 6px 10px;
  font-size: 12px;
}
a {
  color: var(--teal);
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 650;
  margin-bottom: 9px;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 16px;
}
p {
  line-height: 1.6;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
.eyebrow {
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.8px;
  color: var(--teal);
  margin-bottom: 12px;
}
.badge {
  display: inline-flex;
  align-items: center;
  background: #e7f4ef;
  color: #16734c;
  border-radius: 20px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}
.badge.gray {
  background: #edf1f3;
  color: #63737b;
}
.badge.amber {
  background: #fff4da;
  color: #926b10;
}
.badge.red {
  background: #fdebec;
  color: #a63b41;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.between {
  justify-content: space-between;
}
.wrap {
  flex-wrap: wrap;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.grow {
  flex: 1;
}
.divider {
  height: 1px;
  background: var(--border);
  margin: 22px 0;
}
.loading {
  padding: 80px;
  text-align: center;
  color: var(--muted);
}
.empty {
  padding: 48px 24px;
  text-align: center;
  background: white;
  border: 1px dashed #c4d5d9;
  border-radius: 12px;
}
.empty p {
  max-width: 430px;
  margin: 10px auto 22px;
}
.error {
  padding: 12px 15px;
  background: #fff0f0;
  border: 1px solid #edc7c7;
  border-radius: 7px;
  color: #9a343b;
  margin-bottom: 14px;
}
.notice {
  padding: 12px 16px;
  background: #f0f6f8;
  border-radius: 8px;
  color: #597078;
  line-height: 1.6;
  font-size: 12px;
}
.shell {
  display: grid;
  grid-template-columns: 276px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--nav);
  color: #bfd0d5;
  padding: 18px 14px 10px;
  position: fixed;
  inset: 0 auto 0 0;
  width: 276px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  margin-bottom: 35px;
}
.brandmark {
  width: 38px;
  height: 38px;
  background: #23777b;
  border: 1px solid #529699;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 19px;
  font-weight: 800;
}
.brand strong {
  display: block;
  letter-spacing: 1.2px;
}
.brand small {
  font-size: 10px;
  color: #92aeb5;
}
.sidebar .brand {
  flex: none;
  margin: 0 5px 16px;
}
.sidebar-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #496970 transparent;
  padding: 3px;
}
.workspace-card {
  padding: 12px;
  border: 1px solid #365760;
  border-radius: 9px;
  background: #173941;
}
.sidebar-label {
  display: block;
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 650;
  color: #bdd4d9;
}
.workspace-card select {
  width: 100%;
  min-width: 0;
  min-height: 30px;
  padding: 5px 6px;
  color: #f2f7f8;
  background: #21434b;
  border: 1px solid #47666e;
  border-radius: 5px;
  font-size: 12px;
  text-overflow: ellipsis;
  color-scheme: dark;
}
.workspace-card select:disabled {
  opacity: 1;
  color: #b5c8cd;
}
.workspace-details {
  display: grid;
  gap: 3px;
  margin: 9px 0;
}
.workspace-details div, .workspace-context {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 6px;
  font-size: 11px;
  line-height: 1.4;
}
.workspace-details dt, .workspace-context span { color: #aec7cd; }
.workspace-details dd, .workspace-context b {
  margin: 0;
  color: #ecf4f5;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.workspace-context { margin-top: 7px; }
.sidebar-hint { margin: 7px 0 0; font-size: 11px; color: #c4d7db; }
.nav-label {
  margin: 13px 8px 4px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #a8c2c8;
}
.navitem {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 9px;
  min-height: 29px;
  text-align: left;
  padding: 4px 8px;
  background: transparent;
  color: #cee0e4;
  border: none;
  font-size: 12px;
  font-weight: 500;
}
.navitem:hover:enabled { background: #1e424b; }
.navitem.active {
  background: #214851;
  color: white;
  box-shadow: inset 3px 0 #66cbc3;
}
.navitem span {
  width: 16px;
  text-align: center;
  flex: none;
  color: #a6c8cc;
}
.navitem:disabled { background: transparent; color: #98b2b8; opacity: 1; cursor: default; }
.sidebar :focus-visible { outline: 2px solid #87ded8; outline-offset: 1px; }
.sidebar-bottom {
  flex: none;
  margin-top: 7px;
  border-top: 1px solid #30505a;
  padding: 9px 5px 0;
  overflow-wrap: anywhere;
}
.account-actions { display: flex; gap: 5px; margin-top: 3px; }
.account-actions button { padding: 4px 7px; }
.sidebar-close, .sidebar-scrim { display: none; }
.avatar {
  height: 34px;
  width: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #31525c;
  color: white;
  font-weight: 650;
}
.sidebar .user-name {
  color: #e2ecef;
  font-size: 12px;
}
.sidebar .user-role {
  color: #8cabb3;
  font-size: 11px;
  text-transform: capitalize;
}
.sidebar .quiet {
  color: #b9cdd3;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 69px;
  border-bottom: 1px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 35px;
  gap: 15px;
}
.breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
}
.breadcrumb button {
  padding: 0;
  color: var(--muted);
  border: 0;
  background: none;
  font-size: 12px;
  font-weight: 500;
}
.breadcrumb span {
  color: #b7c6cb;
}
.save-state {
  font-size: 11px;
  color: #648078;
  white-space: nowrap;
}
.save-state:before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #36a277;
  border-radius: 50%;
  margin-right: 7px;
}
.content {
  padding: 33px 35px 44px;
  max-width: 1600px;
  margin: auto;
}
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 25px;
}
.page-header p {
  margin-bottom: 0;
  max-width: 650px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 26px 0;
}
.stat {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stat strong {
  font-size: 28px;
  letter-spacing: -1px;
  font-weight: 600;
}
.stat span {
  color: var(--muted);
  font-size: 12px;
}
.stat-symbol {
  background: #ecf5f5;
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--teal);
  font-size: 20px;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 28px 0 16px;
  gap: 20px;
}
.section-header h2 {
  font-size: 16px;
  margin: 0;
}
.search {
  max-width: 270px;
  width: 100%;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 22px;
  box-shadow: 0 3px 9px #16333b04;
  display: flex;
  flex-direction: column;
}
.card:hover {
  border-color: #a9c9cc;
}
.card h3 {
  margin: 18px 0 8px;
}
.card p {
  font-size: 12px;
  margin-bottom: 20px;
  min-height: 38px;
}
.card .card-bottom {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #edf1f3;
}
.card .icon {
  width: 38px;
  height: 38px;
  border: 1px solid #dceaea;
  border-radius: 9px;
  background: #f3f9f8;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: var(--teal);
}
.card-meta {
  font-size: 11px;
  color: var(--muted);
}
.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.tag {
  font-size: 10px;
  border-radius: 4px;
  color: #617b83;
  background: #f0f5f6;
  padding: 4px 7px;
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin: 0 0 22px;
  gap: 2px 18px;
  flex-wrap: wrap;
}
.tab {
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  border-radius: 0;
  color: var(--muted);
  padding: 13px 1px;
  font-size: 13px;
  white-space: nowrap;
}
.tab:focus-visible { outline: 2px solid var(--teal); outline-offset: -3px; }
.tab.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}
.panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.panel-head {
  padding: 17px 20px;
  border-bottom: 1px solid var(--border);
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 12px;
}
th {
  background: #f8fafb;
  color: #778b92;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 650;
}
th,
td {
  padding: 13px 18px;
  border-bottom: 1px solid #ecf1f2;
}
tr:last-child td {
  border-bottom: 0;
}
td .small {
  padding: 4px 7px;
}
.table-wrap {
  overflow: auto;
}
.text-link {
  background: none;
  border: 0;
  color: var(--teal);
  padding: 0;
  text-align: left;
  font-weight: 600;
}
.graph-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 275px;
  gap: 16px;
}
.graph-panel {
  position: relative;
  overflow: hidden;
  background: #fbfdfd;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.graph-toolbar {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.graph-toolbar .hint {
  font-size: 10px;
  color: var(--muted);
  margin-left: auto;
}
.diagram {
  display: block;
  width: 100%;
  height: 540px;
  touch-action: none;
  user-select: none;
  background-image: radial-gradient(#c9dadd 0.8px, transparent 0.8px);
  background-size: 18px 18px;
}
.diagram .node {
  cursor: grab;
}
.diagram .node:active {
  cursor: grabbing;
}
.diagram .edge {
  cursor: pointer;
}
.graph-foot {
  padding: 10px 15px;
  background: white;
  border-top: 1px solid var(--border);
  font-size: 10px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.inspector {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  max-height: 630px;
  overflow: auto;
  font-size: 12px;
}
.inspector h3 {
  font-size: 14px;
}
.inspector dl {
  margin: 0;
}
.inspector dt {
  font-size: 10px;
  color: var(--muted);
  margin: 18px 0 5px;
}
.inspector dd {
  margin: 0;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.legend {
  display: flex;
  gap: 15px;
  font-size: 11px;
  color: var(--muted);
  margin: 15px 0;
}
.legend i {
  width: 20px;
  height: 2px;
  background: var(--teal);
  display: inline-block;
  vertical-align: middle;
  margin-right: 5px;
}
.legend i.dashed {
  background: none;
  border-top: 2px dashed #b0804d;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.field label {
  font-size: 12px;
  font-weight: 600;
  color: #416068;
}
.field small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}
input:not([type="checkbox"]),
select,
textarea {
  width: 100%;
  border: 1px solid #cddce0;
  border-radius: 6px;
  background: white;
  color: var(--ink);
  padding: 10px 12px;
  min-height: 39px;
}
textarea {
  min-height: 88px;
  resize: vertical;
  line-height: 1.5;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.full {
  grid-column: 1/-1;
}
.checks {
  max-height: 220px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 7px;
}
.checks input {
  accent-color: var(--teal);
}
.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.dialog-top h2 {
  margin: 0;
}
dialog {
  width: min(720px, calc(100vw - 32px));
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 27px;
  box-shadow: 0 25px 100px #102e3644;
  max-height: 90vh;
  color: var(--ink);
}
dialog::backdrop {
  background: #102e3677;
  backdrop-filter: blur(3px);
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 22px;
}
.pair {
  display: grid;
  grid-template-columns: 1fr 25px 1fr 34px;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
}
.pair span {
  text-align: center;
}
.pair button {
  padding: 8px;
}
.code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f3f7f8;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 16px;
  font-size: 11px;
  line-height: 1.6;
  max-height: 400px;
  overflow: auto;
}
.login-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.login-story {
  background: var(--nav);
  color: white;
  padding: 65px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.login-story h1 {
  color: white;
  font-size: 45px;
  line-height: 1.16;
  max-width: 430px;
  letter-spacing: -1.8px;
}
.login-story p {
  max-width: 380px;
  color: #a7c4cb;
  font-size: 15px;
}
.login-story .brand {
  margin: 0;
}
.login-art {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 40px 0;
  color: #79d1cd;
  flex-wrap: wrap;
}
.mini-node {
  border: 1px solid #3a6670;
  background: #173e47;
  border-radius: 8px;
  padding: 14px 18px;
  min-width: 120px;
  color: #cbe2e7;
  font-size: 12px;
}
.mini-node:after {
  content: "";
  display: block;
  border-top: 1px solid #3a6670;
  margin-top: 10px;
}
.login-side {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}
.login-form {
  width: 100%;
  max-width: 360px;
}
.login-form h2 {
  font-size: 28px;
}
.login-form .primary {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
}
.login-foot {
  font-size: 11px;
  color: var(--muted);
  margin-top: 25px;
  line-height: 1.8;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: calc(50% + 100px);
  transform: translateX(-50%);
  background: #173e47;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px #102e3633;
  padding: 13px 20px;
  z-index: 20;
  display: none;
  max-width: 80vw;
  font-size: 13px;
}
.check-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 12px 0;
}
.split-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.mobile-menu {
  display: none;
}
.critical {
  color: #a63b41;
}
.subtle {
  font-size: 11px;
  color: #7c9299;
}
.inline-error {
  color: #a3333d;
  margin: 10px 0;
}
.context-note {
  margin-bottom: 18px;
  font-size: 12px;
}
.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
}
.details dt {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}
.details dd {
  margin: 0;
  font-size: 13px;
  white-space: pre-wrap;
}
.user-card {
  max-width: 760px;
}
@media (max-width: 1100px) {
  .graph-layout {
    grid-template-columns: 1fr;
  }
  .inspector {
    max-height: 330px;
  }
  .content {
    padding: 26px;
  }
  .topbar {
    padding: 0 26px;
  }
  .login-story {
    padding: 40px;
  }
  .login-story h1 {
    font-size: 37px;
  }
}
@media (max-width: 760px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .main {
    grid-column: 1;
  }
  .sidebar {
    display: none;
    z-index: 12;
  }
  .sidebar.open { display: flex; }
  .sidebar.open + .sidebar-scrim {
    display: block;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 11;
    border: 0;
    border-radius: 0;
    background: #102e366b;
  }
  .sidebar-close { display: block; margin-left: auto; padding: 4px 8px; font-size: 20px; }
  .sidebar .navitem { min-height: 38px; }
  .mobile-menu {
    display: inline-block;
  }
  .content {
    padding: 22px 16px;
  }
  .topbar {
    padding: 0 16px;
  }
  .save-state { white-space: normal; }
  .page-header {
    flex-direction: column;
    gap: 15px;
  }
  h1 {
    font-size: 26px;
  }
  .stats {
    gap: 8px;
  }
  .stat {
    padding: 14px;
    display: block;
  }
  .stat-symbol {
    display: none;
  }
  .stat strong {
    display: block;
    font-size: 23px;
  }
  .stat span {
    font-size: 10px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .full {
    grid-column: auto;
  }
  .login-page {
    display: block;
  }
  .login-story {
    padding: 30px;
  }
  .login-story > div:not(:first-child) {
    display: none;
  }
  .login-side {
    padding: 40px 24px;
  }
  .login-story .brand {
    margin: 0;
  }
  .login-art {
    display: none;
  }
  .diagram {
    height: 420px;
  }
  #toast {
    left: 50%;
  }
  .details {
    grid-template-columns: 1fr;
  }
  .tabs {
    gap: 18px;
  }
  .pair {
    grid-template-columns: 1fr 15px 1fr 30px;
  }
  .graph-toolbar .hint {
    display: none;
  }
}
.save-state[data-state="failed"] {
  color: #a3333d;
}
.save-state[data-state="failed"]:before {
  background: #c54848;
}
.save-state[data-state="saving"]:before {
  background: #b58a30;
}
details summary {
  cursor: pointer;
  font-weight: 600;
  color: #335d65;
  padding: 8px 0;
  margin-bottom: 10px;
}
.graph-toolbar {
  flex-wrap: wrap;
}
.details dd {
  overflow-wrap: anywhere;
}
.explorer-connect{display:flex;gap:15px;align-items:center;padding:20px;flex-wrap:wrap;margin-bottom:20px}.explorer-connect>div{flex:1;min-width:220px}.explorer-connect p{margin:5px 0;font-size:12px}.explorer-connect select{max-width:240px}.offline-panel{padding:15px 20px;background:#eaf2f3;border-radius:9px;margin-bottom:22px}.offline-panel select{width:200px}.explorer-grid{display:grid;grid-template-columns:260px 1fr;gap:18px}.explorer-tree,.explorer-editor,.explorer-results,.explorer-history>.panel{padding:20px}.explorer-tree{max-height:860px;overflow:auto}.explorer-tree summary{font-size:12px;overflow-wrap:anywhere}.explorer-tree details{border-bottom:1px solid #dce5e7}.explorer-columns{padding:10px 0;font-size:11px}.explorer-columns div{display:flex;justify-content:space-between;gap:10px;margin:7px 0}.explorer-columns small{color:#6d838a}.sql-editor{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;min-height:260px;font-size:13px;tab-size:2;line-height:1.6;background:#f9fbfc}.explorer-actions{margin-top:15px}.explorer-actions label{font-size:12px}#sql-feedback{margin-top:16px;white-space:pre-wrap;color:#335761;font-weight:600}.explorer-results{margin-top:20px}.explorer-results td{max-width:400px;overflow-wrap:anywhere}.explorer-history{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:20px}.validation-item{padding:14px 0;border-bottom:1px solid #dce5e7}.validation-item strong{display:block;margin-bottom:7px}.validation-item p{font-size:12px;margin:8px 0}.explorer-tree input{margin-bottom:10px}@media(max-width:1000px){.explorer-grid{grid-template-columns:1fr}.explorer-tree{max-height:260px}.explorer-history{grid-template-columns:1fr}}

.sso-signin { display: block; padding: 11px 15px; border: 1px solid var(--teal); border-radius: 7px; text-align: center; font-weight: 650; color: var(--teal); text-decoration: none; }
.sso-signin:hover { background: #edf6f6; }
.local-signin-label { margin: 14px 0; color: var(--muted); font-size: 12px; }
#login-error:not(:empty) { margin-bottom: 12px; color: #813d30; }
.account-directory { overflow: hidden; }
.directory-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; padding: 16px; }
.directory-controls label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; }
.directory-controls a { margin-left: auto; padding-bottom: 8px; }

.sso-identity dd { margin: 2px 0 9px; overflow-wrap: anywhere; }
.sso-identity dt { color: var(--muted); font-size: 12px; }

.save-state:empty, .card-meta:empty, .tags:empty { display: none; }
.context-evidence { margin-top: 22px; padding: 20px 24px; }
.context-evidence h2 { margin-bottom: 12px; }
.validation-item:last-child { border-bottom: 0; }
.context-evidence .validation-item:last-child { padding-bottom: 0; }
.login-story { justify-content: flex-start; gap: min(18vh, 160px); }
.login-story h1 { max-width: 12ch; }
.sso-signin { background: var(--teal); color: white; }
.sso-signin:hover { background: #066769; }
.login-form .local-signin-label { margin-block: 16px; }
.guide-layout { display: grid; grid-template-columns: minmax(180px, 250px) minmax(0, 780px); gap: clamp(20px, 4vw, 52px); align-items: start; }
.guide-index { background: white; border: 1px solid var(--border); border-radius: 10px; padding: 20px; }
.guide-index h2 { font-size: 15px; margin: 0 0 8px; }
.guide-index a { display: block; line-height: 1.4; padding: 7px 0; }
.guide-index a:hover, .guide-sections a:hover { text-decoration: underline; }
.guide-index a[aria-current] { font-weight: 700; }
.guide-sections { min-width: 0; background: white; border: 1px solid var(--border); border-radius: 10px; padding: clamp(18px, 3vw, 36px); }
.guide-section + .guide-section { border-top: 1px solid var(--border); margin-top: 24px; padding-top: 24px; }
.guide-section h2, #guide-title { scroll-margin-top: 18px; }
.guide-section h2 { margin-bottom: 12px; }
.guide-section ol { margin: 0; padding-inline-start: 1.5em; }
.guide-section li { line-height: 1.6; margin-bottom: 8px; padding-inline-start: .25em; overflow-wrap: anywhere; }
.guide-section li::marker { color: var(--teal); }
.guide-section code { font-size: .92em; }
.guide-section pre { padding: 14px; border-radius: 6px; background: #f1f6f6; overflow-x: auto; }
.guide-sections > a { display: inline-block; margin-top: 20px; }
@media (max-width: 980px) {
  .guide-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .tabs { gap: 2px 14px; }
  .tab { padding-block: 9px; }
}
