:root {
  font-family: Inter, system-ui, sans-serif;
  color: #20304c;
  background: #f5f7fb;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  --border: #e4e9f2;
  --blue: #2958c9;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  display: flex;
  min-height: 100vh;
}
aside {
  width: 254px;
  flex-shrink: 0;
  background: #101e35;
  color: white;
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
aside strong {
  font-size: 20px;
}
aside span,
aside p {
  color: #bbc8df;
  font-size: 13px;
  line-height: 1.6;
}
aside p {
  margin-top: auto;
}
nav {
  display: grid;
  gap: 8px;
  margin-top: 28px;
}
nav button {
  text-align: left;
  color: #dae4f5;
  background: transparent;
  border: 0;
}
nav button[aria-current="page"] {
  background: #26436c;
  color: #fff;
}
main {
  flex: 1;
  min-width: 0;
  padding: 0 40px 40px;
}
header {
  min-height: 68px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  color: #62718a;
}
h1 {
  font-size: 28px;
  margin: 0 0 10px;
}
h2 {
  font-size: 20px;
  margin: 0;
}
p {
  color: #62718a;
  line-height: 1.6;
  margin: 8px 0 14px;
}
.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  overflow: auto;
}
.narrow {
  max-width: 460px;
  margin: 48px auto;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}
.access {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.access small {
  overflow-wrap: anywhere;
  color: #62718a;
}
.access p {
  margin: 4px 0;
}
.primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
button {
  border: 1px solid #ced8e8;
  background: white;
  color: #20304c;
  border-radius: 9px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
button:hover {
  filter: brightness(0.96);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #98b9ff;
  outline-offset: 2px;
}
label {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  font-weight: 600;
}
input,
select,
textarea {
  padding: 11px;
  border: 1px solid #cbd6e6;
  border-radius: 8px;
  font: inherit;
  color: inherit;
  width: 100%;
  background: #fff;
}
textarea {
  min-height: 130px;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  line-height: 1.5;
}
fieldset {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
}
legend {
  font-weight: 600;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #62718a;
}
td,
th {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
td {
  overflow-wrap: anywhere;
}
td small {
  display: block;
  color: #62718a;
  margin-top: 6px;
}
tr:last-child td {
  border: 0;
}
.status {
  display: inline-block;
  background: #edf3ff;
  color: #26436c;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 12px;
}
.muted {
  background: #f1f3f7;
  color: #62718a;
}
#message:not(:empty) {
  background: #edf3ff;
  padding: 14px;
  border-radius: 8px;
  margin-bottom: 20px;
}
#editor-error {
  color: #b44744;
  margin: 16px 0;
}
dialog {
  position: fixed;
  inset: 0 0 0 auto;
  height: 100dvh;
  max-height: 100dvh;
  width: min(540px, 100vw);
  max-width: 100vw;
  margin: 0;
  border: 0;
  border-left: 1px solid var(--border);
  padding: 30px;
  color: inherit;
  background: white;
}
dialog::backdrop {
  background: #101e3540;
}
dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.footnote {
  font-size: 12px;
}
code {
  font-size: 12px;
  overflow-wrap: anywhere;
}
[hidden] {
  display: none !important;
}
.consent {
  display: block;
  min-height: auto;
}
.consent main {
  max-width: 660px;
  padding: 40px 20px;
  margin: auto;
}
.consent .panel {
  margin-top: 24px;
}
.consent footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}
@media (max-width: 780px) {
  body {
    display: block;
  }
  aside {
    width: 100%;
    padding: 20px;
  }
  aside p {
    display: none;
  }
  nav {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 10px;
  }
  main {
    padding: 0 16px 24px;
  }
  .heading {
    align-items: flex-start;
    gap: 12px;
  }
  .panel {
    padding: 18px;
  }
  .access {
    align-items: flex-start;
    flex-direction: column;
  }
  th,
  td {
    padding: 12px 8px;
  }
}

.connect-step {
  max-width: 820px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.connect-step:first-child {
  padding-top: 0;
}
.connect-step:last-child {
  border-bottom: 0;
}
.connect-step > small {
  display: block;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 8px;
}
.connect-step li {
  line-height: 1.7;
  margin-bottom: 8px;
}
.copy-field {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}
.copy-field label {
  flex: 1;
  min-width: 0;
  margin: 12px 0;
}
.copy-field button {
  margin-bottom: 12px;
}
.copy-field input {
  font-family: ui-monospace, monospace;
  font-size: 13px;
  background: #f5f7fb;
}
.connect-settings {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 2fr;
  gap: 14px;
}
.connect-settings dt {
  font-weight: 600;
}
.connect-settings dd {
  margin: 0;
  line-height: 1.6;
}
.connect-step summary {
  cursor: pointer;
  font-weight: 600;
}
.connect-step [role="alert"] {
  color: #b44744;
}
@media (max-width: 780px) {
  .connect-settings {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .connect-settings dd {
    margin-bottom: 12px;
  }
}
