.nl-shell {
  --nl-content-max: 1200px;
  --nl-page-gutter: 16px;
  --nl-card-padding: 18px;
  --nl-border: #e1e4e8;
  --nl-muted: #6a737d;
  --nl-soft: #f6f8fa;
  --nl-primary: #2b7de9;
  --nl-success: #2da44e;
  --nl-danger: #cf222e;
  --nl-radius: 7px;
  width: 100% !important;
  max-width: calc(var(--nl-content-max) + (var(--nl-page-gutter) * 2));
  min-width: 0;
  margin-right: auto !important;
  margin-left: auto !important;
  padding: 18px var(--nl-page-gutter) 40px;
  padding-right: max(var(--nl-page-gutter), env(safe-area-inset-right));
  padding-left: max(var(--nl-page-gutter), env(safe-area-inset-left));
  box-sizing: border-box;
}

.naixi-link {
  min-width: 0;
  color: inherit;
  font-size: 14px;
  line-height: 1.65;
}

.naixi-link *,
.naixi-link *::before,
.naixi-link *::after {
  box-sizing: border-box;
}

.naixi-link img,
.naixi-link input,
.naixi-link textarea,
.naixi-link button,
.naixi-link select {
  max-width: 100%;
}

.naixi-link button,
.naixi-link input,
.naixi-link textarea,
.naixi-link select {
  font: inherit;
}

.naixi-link h1,
.naixi-link h2,
.naixi-link h3,
.naixi-link p {
  margin-top: 0;
}

.naixi-link h1 {
  margin-bottom: 8px;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.naixi-link h2 {
  margin-bottom: 8px;
  font-size: 18px;
}

.naixi-link h3 {
  margin-bottom: 6px;
  font-size: 15px;
}

.naixi-link code,
.naixi-link pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.naixi-link code {
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--nl-soft);
  overflow-wrap: anywhere;
}

.naixi-link pre {
  max-width: 100%;
  overflow-x: auto;
  margin: 14px 0;
  padding: 16px;
  border: 1px solid var(--nl-border);
  border-radius: 6px;
  background: #0d1117;
  color: #e6edf3;
  line-height: 1.55;
  white-space: pre;
  word-break: normal;
  overflow-wrap: normal;
  -webkit-overflow-scrolling: touch;
}

.naixi-link pre code {
  padding: 0;
  background: none;
  color: inherit;
  word-break: normal;
  overflow-wrap: normal;
}

.naixi-link :focus-visible {
  outline: 2px solid var(--nl-primary);
  outline-offset: 2px;
}

.naixi-link .bm {
  width: 100%;
  min-width: 0;
  padding: 0 !important;
  border: 1px solid var(--nl-border);
  border-radius: var(--nl-radius);
  overflow: hidden;
  background: #fff;
}

.naixi-link .bm_h {
  display: flex !important;
  float: none !important;
  width: 100% !important;
  height: auto !important;
  min-height: 38px;
  margin: 0 !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px !important;
  border-width: 0 0 1px !important;
  border-style: solid !important;
  border-color: var(--nl-border) !important;
  background-color: var(--nl-soft) !important;
  background-image: none !important;
  line-height: 20px !important;
}

.naixi-link .bm_h::before,
.naixi-link .bm_h::after,
.naixi-link .bm_h h2::before,
.naixi-link .bm_h h2::after {
  display: none !important;
  content: none !important;
}

.naixi-link .bm_h h2 {
  position: static !important;
  display: block !important;
  min-width: 0;
  flex: 1 1 auto;
  float: none !important;
  margin: 0 !important;
  padding: 0 0 0 10px !important;
  border: 0 !important;
  border-left: 4px solid var(--nl-primary) !important;
  font-size: 15px !important;
  font-weight: 600;
  line-height: 20px !important;
  overflow-wrap: anywhere;
}

.naixi-link .bm_h > .y {
  flex: 0 0 auto;
  float: none !important;
  margin-left: auto;
  line-height: 20px !important;
}

.naixi-link .bm_c {
  width: 100%;
  min-width: 0;
  margin: 0 !important;
  padding: var(--nl-card-padding);
}

.naixi-link .pn,
.naixi-link a.pn {
  display: inline-flex;
  float: none !important;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  line-height: 30px;
  white-space: nowrap;
}

.naixi-link a.pn {
  height: 32px;
  color: inherit;
}

.naixi-link a.pn:hover {
  text-decoration: none;
}

.naixi-link a.pnc,
.naixi-link button.pnc {
  color: #fff !important;
}

.nl-nav {
  display: block !important;
  visibility: visible;
  margin-bottom: 18px;
}

.nl-nav .bm_c {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 15px;
}

.nl-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  color: inherit;
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
}

.nl-brand:hover {
  text-decoration: none;
}

.nl-brand-logo {
  display: block;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 8px;
  object-fit: contain;
}

.nl-nav-links {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  flex-wrap: wrap;
}

.nl-nav-links a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 5px;
  color: inherit;
}

.nl-nav-links a:hover,
.nl-nav-links a.current {
  background: var(--nl-soft);
  color: var(--nl-primary);
  text-decoration: none;
}

.nl-hero {
  position: relative;
  margin-bottom: 18px;
  border: 0 !important;
  background: linear-gradient(135deg, #eef7ff 0%, #f7f4ff 100%) !important;
}

.nl-hero::after {
  position: absolute;
  right: -70px;
  top: -100px;
  width: 260px;
  height: 260px;
  border: 45px solid rgba(83, 117, 255, .08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.nl-hero .bm_c {
  position: relative;
  z-index: 1;
  padding: clamp(34px, 6vw, 52px) clamp(22px, 5vw, 46px);
}

.nl-hero h1 {
  max-width: 650px;
  font-size: clamp(28px, 4vw, 38px);
}

.nl-hero p {
  max-width: 680px;
  margin-bottom: 22px;
  color: #4b5563;
  font-size: clamp(15px, 2vw, 16px);
}

.nl-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.nl-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.nl-dashboard-grid.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.nl-section {
  margin-top: 18px;
}

.nl-page-head {
  display: flex;
  min-width: 0;
  min-height: 95px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 4px 22px;
}

.nl-page-head-copy,
.nl-app-title,
.nl-app-title > div {
  min-width: 0;
}

.nl-page-head > .pn {
  flex: 0 0 auto;
  margin-left: auto;
}

.nl-page-head p {
  max-width: 100%;
  margin-bottom: 0;
  color: var(--nl-muted);
  overflow-wrap: anywhere;
}

.nl-list {
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}

.nl-row {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--nl-border);
  color: inherit;
}

a.nl-row:hover {
  background: var(--nl-soft);
  text-decoration: none;
}

.nl-row:last-child {
  border-bottom: 0;
}

.nl-row-main {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  padding-top: 1px;
}

.nl-row-main strong,
.nl-row-main small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nl-row-main small {
  color: var(--nl-muted);
}

.nl-row-main code {
  max-width: 100%;
  align-self: flex-start;
  margin-top: 3px;
  color: var(--nl-muted);
  font-size: 11px;
}

.nl-row-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
}

.nl-row-actions form,
.nl-row form {
  margin: 0;
}

.nl-credential-row {
  align-items: center;
}

.nl-secret-summary {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: flex-start;
  gap: 12px;
}

.nl-row > .nl-status {
  margin-top: 2px;
}

.nl-app-avatar,
.nl-key-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d8e7fa;
  border-radius: 11px;
  background: #eff6ff;
  color: var(--nl-primary);
  font-size: 18px;
  font-weight: 700;
}

.nl-app-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nl-app-avatar-xl {
  width: 64px;
  height: 64px;
  margin: 8px auto 18px;
  border-radius: 16px;
  font-size: 27px;
}

.nl-app-avatar-head {
  width: 54px;
  height: 54px;
  flex-basis: 54px;
  border-radius: 13px;
}

.nl-app-avatar-preview {
  width: 58px;
  height: 58px;
  flex-basis: 58px;
  border-radius: 14px;
}

.nl-app-title {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  gap: 14px;
}

.nl-app-head {
  align-items: center;
}

.nl-app-head > .nl-status {
  margin-left: auto;
}

.nl-key-icon {
  border-color: var(--nl-border);
  background: var(--nl-soft);
  color: var(--nl-muted);
  font-size: 13px;
  letter-spacing: 2px;
}

.nl-status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid #b7e2c1;
  border-radius: 999px;
  background: #f0fff4;
  color: var(--nl-success);
  font-size: 11px;
  line-height: 18px;
  white-space: nowrap;
}

.nl-status.is-off {
  border-color: #d8d8d8;
  background: var(--nl-soft);
  color: var(--nl-muted);
}

.nl-status-lg {
  align-self: center;
  font-size: 12px;
}

.nl-empty {
  padding: 38px 16px;
  color: var(--nl-muted);
  text-align: center;
}

.nl-empty strong {
  display: block;
  margin-bottom: 6px;
  color: inherit;
  font-size: 17px;
}

.nl-alert {
  margin-bottom: 16px;
  padding: 12px 15px;
  border: 1px solid;
  border-radius: 6px;
  overflow-wrap: anywhere;
}

.nl-alert ul {
  margin: 7px 0 0;
  padding-left: 20px;
}

.nl-alert.success {
  border-color: #b7e2c1;
  background: #f0fff4;
  color: #176f2c;
}

.nl-alert.error {
  border-color: #f0b9be;
  background: #fff3f4;
  color: #9f1c27;
}

.nl-form-grid {
  display: grid;
  width: 100%;
  gap: 0;
}

.nl-form-row {
  display: grid;
  grid-template-columns: minmax(140px, 175px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 9px 0;
}

.nl-field-label {
  display: block;
  margin: 0;
  padding: 0;
  font-weight: 600;
  line-height: 28px;
}

.nl-field-control {
  min-width: 0;
}

.nl-form .px,
.nl-form .pt {
  display: block;
  width: 100%;
  margin: 0;
  padding: 7px 9px;
  border: 1px solid #c9d1d9;
  border-radius: 6px;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(27, 31, 36, .06);
  color: inherit;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.nl-form .px:hover,
.nl-form .pt:hover {
  border-color: #afb8c1;
}

.nl-form .px:focus,
.nl-form .pt:focus {
  border-color: var(--nl-primary);
  box-shadow: 0 0 0 3px rgba(43, 125, 233, .14);
  outline: 0;
}

.nl-form .pt {
  min-height: 74px;
  resize: vertical;
}

.nl-form .d {
  margin: 6px 0 0;
  color: var(--nl-muted);
  overflow-wrap: anywhere;
}

.nl-form-actions {
  padding-top: 14px;
}

.nl-form-actions .nl-field-control {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nl-check-label {
  display: inline-flex;
  align-items: flex-start;
  gap: 7px;
  line-height: 22px;
}

.nl-check-label .pc {
  flex: 0 0 auto;
  margin-top: 4px;
}

.nl-avatar-field {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 13px;
}

.nl-avatar-field > div {
  min-width: 0;
  flex: 1;
  padding-top: 2px;
}

.nl-secret-once {
  padding: 17px;
  border: 1px solid #a8d5b4;
  border-radius: var(--nl-radius);
  background: #f0fff4;
}

.nl-secret-once p {
  margin-bottom: 9px;
  color: #347143;
}

.nl-copyline {
  display: flex;
  min-width: 0;
  align-items: stretch;
  gap: 8px;
}

.nl-copyline code {
  display: block;
  min-width: 0;
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #b7e2c1;
  background: #fff;
  font-size: 13px;
}

.nl-danger {
  border-color: #f0b9be !important;
}

.nl-danger .bm_h {
  background: #fff3f4 !important;
  color: var(--nl-danger);
}

.nl-danger .bm_h h2 {
  border-left-color: var(--nl-danger) !important;
}

.nl-danger-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.nl-danger-grid > div {
  min-width: 0;
}

.nl-danger-grid > div + div {
  padding-left: 30px;
  border-left: 1px solid #f0b9be;
}

.nl-inline-action {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
}

.naixi-link .nl-confirm-input {
  min-width: 0;
  width: auto;
  max-width: 100%;
  height: 38px;
  min-height: 38px;
  flex: 0 0 auto;
  margin: 0;
  padding: 6px 9px;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(27, 31, 36, .06);
}

.naixi-link .nl-confirm-input:focus {
  border-color: var(--nl-primary);
  box-shadow: 0 0 0 3px rgba(43, 125, 233, .14);
  outline: 0;
}

.nl-button-danger {
  border-color: #cf222e !important;
  background: #cf222e !important;
  color: #fff !important;
}

.naixi-link .nl-action-button {
  display: inline-flex;
  width: auto;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid #d0d7de;
  border-radius: 5px;
  appearance: none;
  background: #fff;
  box-shadow: 0 1px 2px rgba(27, 31, 36, .06);
  color: #24292f;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  line-height: 30px;
  white-space: nowrap;
}

.naixi-link .nl-action-button:hover {
  border-color: #afb8c1;
  background: var(--nl-soft);
}

.naixi-link .nl-action-button.is-danger {
  border-color: #f0b9be;
  background: #fff;
  color: var(--nl-danger);
}

.naixi-link .nl-action-button.is-danger:hover {
  border-color: #cf222e;
  background: #fff3f4;
}

.naixi-link .nl-action-button:focus-visible {
  outline: 2px solid var(--nl-primary);
  outline-offset: 2px;
}

.nl-secret-create {
  margin: 12px 0 0;
}

.nl-usage-summary {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.nl-usage-count {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding-right: 28px;
  border-right: 1px solid var(--nl-border);
}

.nl-usage-count strong {
  color: var(--nl-primary);
  font-size: 34px;
  line-height: 1.1;
}

.nl-usage-count span {
  margin-top: 5px;
  font-size: 15px;
  font-weight: 600;
}

.nl-usage-count small,
.nl-usage-action p {
  color: var(--nl-muted);
}

.nl-usage-count small {
  margin-top: 4px;
}

.nl-usage-action {
  min-width: 0;
}

.nl-usage-action p {
  margin-bottom: 11px;
}

.nl-usage-action form {
  margin: 0;
}

.nl-grant {
  min-width: 0;
  padding: 20px 4px;
  border-bottom: 1px solid var(--nl-border);
}

.nl-grant:last-child {
  border-bottom: 0;
}

.nl-grant-head {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 14px;
}

.nl-grant-copy {
  min-width: 0;
  flex: 1;
}

.nl-grant-head h2 {
  margin: 0 0 2px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.nl-grant-head p {
  margin-bottom: 3px;
  color: var(--nl-muted);
}

.nl-grant-head small {
  display: block;
  color: var(--nl-muted);
  overflow-wrap: anywhere;
}

.nl-grant-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 15px;
}

.nl-grant-actions form {
  flex: 0 0 auto;
  margin: 0;
}

.nl-scope-list {
  display: grid;
  gap: 8px;
  margin-top: 15px;
}

.nl-scope-list > div {
  display: grid;
  grid-template-columns: minmax(72px, 88px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid var(--nl-border);
  border-radius: 6px;
  background: var(--nl-soft);
}

.nl-scope-list > div > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.nl-scope-list small {
  color: var(--nl-muted);
}

.nl-consent-wrap {
  width: 100%;
  max-width: 620px;
  margin: 24px auto 0;
}

.nl-consent {
  text-align: center;
}

.nl-consent .bm_c {
  padding: clamp(24px, 5vw, 38px);
}

.nl-consent-brand {
  margin-bottom: 15px;
  text-align: left;
}

.nl-consent-brand a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  color: inherit;
  font-weight: 700;
}

.nl-consent-brand .nl-brand-logo {
  width: 25px;
  height: 25px;
  flex-basis: 25px;
  border-radius: 7px;
}

.nl-consent-permissions {
  margin: 15px 0;
  padding: 15px 16px;
  border: 1px solid var(--nl-border);
  border-radius: 6px;
  background: var(--nl-soft);
  text-align: left;
}

.nl-consent-lead {
  margin-bottom: 12px !important;
  color: var(--nl-muted);
  font-size: 15px;
}

.nl-app-note {
  margin: 14px 0;
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--nl-soft);
  color: var(--nl-muted);
  overflow-wrap: anywhere;
}

.nl-consent-permissions .nl-scope-list {
  margin-top: 0;
}

.nl-consent-permissions .nl-scope-list > div {
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.nl-consent-permissions .nl-scope-list > div + div {
  padding-top: 12px;
  border-top: 1px solid var(--nl-border);
}

.nl-scope-compact {
  text-align: left;
}

.nl-scope-compact > div {
  grid-template-columns: 25px minmax(0, 1fr);
}

.nl-scope-check {
  display: grid !important;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: #daf4e1;
  color: var(--nl-success);
}

.nl-consent-account {
  margin: 17px 0;
  padding-top: 15px;
  border-top: 1px solid var(--nl-border);
  color: var(--nl-muted);
}

.nl-consent-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, auto));
  justify-content: center;
  gap: 8px;
}

.nl-callback-note {
  margin: 14px 0 0;
  color: var(--nl-muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.nl-error-card {
  padding-top: 46px !important;
  padding-bottom: 46px !important;
}

.nl-error-mark {
  display: inline-grid;
  width: 50px;
  height: 50px;
  margin-bottom: 15px;
  place-items: center;
  border-radius: 50%;
  background: #fff0f1;
  color: var(--nl-danger);
  font-size: 25px;
  font-weight: 700;
}

.nl-simple-error {
  text-align: center;
}

.nl-simple-error .bm_c {
  padding: 55px 20px;
}

.nl-simple-error p {
  margin-bottom: 18px;
  color: var(--nl-muted);
}

.nl-error-actions {
  display: flex;
  justify-content: center;
}

.nl-error-actions .pn,
.nl-error-card .nl-actions,
.nl-error-card .nl-actions .pn {
  float: none !important;
}

.nl-error-card .nl-actions {
  margin-top: 18px;
  justify-content: center;
}

.nl-doc-layout {
  display: grid;
  grid-template-columns: minmax(190px, 210px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.nl-doc-menu {
  position: sticky;
  top: 10px;
  min-width: 0;
}

.nl-doc-menu .bm_c {
  display: grid;
  padding: 7px;
}

.nl-doc-menu a {
  padding: 7px 10px;
  border-radius: 5px;
  color: inherit;
}

.nl-doc-menu a:hover {
  background: var(--nl-soft);
  color: var(--nl-primary);
  text-decoration: none;
}

.nl-doc-main {
  min-width: 0;
}

.nl-doc-main section {
  scroll-margin-top: 16px;
}

.nl-doc-main h3 {
  margin-top: 20px;
}

.nl-steps {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nl-steps li {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  gap: 12px;
}

.nl-steps li > span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  background: #eaf3ff;
  color: var(--nl-primary);
  font-weight: 700;
}

.nl-steps p {
  margin-bottom: 0;
  color: var(--nl-muted);
}

.nl-callout {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--nl-primary);
  background: #f1f7ff;
  overflow-wrap: anywhere;
}

.nl-callout p {
  margin: 3px 0 0;
}

.nl-endpoint-list {
  display: grid;
  gap: 0;
  margin: 14px 0;
}

.nl-endpoint-list > div {
  display: grid;
  grid-template-columns: 135px minmax(0, 1fr);
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--nl-border);
}

.nl-endpoint-list > div:last-child {
  border-bottom: 0;
}

.nl-endpoint-list dt {
  font-weight: 600;
}

.nl-endpoint-list dd {
  min-width: 0;
  margin: 0;
}

.nl-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin: 14px 0;
  border-radius: 4px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
}

.nl-table-scroll:focus-visible {
  outline-offset: 3px;
}

.nl-table-scroll .dt {
  width: 100%;
  min-width: 600px;
  margin: 0;
}

.nl-table-scroll.is-compact .dt {
  min-width: 460px;
}

.nl-table-scroll.is-wide .dt {
  min-width: 760px;
}

.nl-doc-main .dt th,
.nl-doc-main .dt td {
  padding: 9px;
  border-color: var(--nl-border);
  vertical-align: top;
}

.nl-bullets {
  margin: 10px 0;
  padding-left: 20px;
}

@media (max-width: 900px) {
  .nl-shell {
    --nl-page-gutter: 14px;
    --nl-card-padding: 16px;
  }

  .nl-dashboard-grid,
  .nl-danger-grid,
  .nl-usage-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .nl-danger-grid > div + div {
    padding-top: 22px;
    padding-left: 0;
    border-top: 1px solid #f0b9be;
    border-left: 0;
  }

  .nl-usage-count {
    padding-right: 0;
    padding-bottom: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--nl-border);
  }

  .nl-doc-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .nl-doc-menu {
    position: static;
  }

  .nl-doc-menu .bm_c {
    display: flex;
    overflow-x: auto;
    gap: 2px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .nl-doc-menu a {
    flex: 0 0 auto;
    min-height: 38px;
    scroll-snap-align: start;
    white-space: nowrap;
  }
}

@media (max-width: 720px) {
  .nl-shell {
    padding-top: 12px;
    padding-bottom: 30px;
  }

  .nl-nav .bm_c {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .nl-nav-links {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .nl-nav-links::-webkit-scrollbar {
    display: none;
  }

  .nl-nav-links a {
    flex: 0 0 auto;
    min-height: 40px;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  .nl-page-head {
    min-height: 0;
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    padding: 10px 2px 18px;
  }

  .nl-page-head > .pn {
    align-self: flex-start;
    margin-left: 0;
  }

  .nl-page-head.nl-app-head {
    align-items: flex-start;
    flex-direction: row;
    gap: 10px;
  }

  .nl-app-head > .nl-status {
    align-self: flex-start;
    margin-left: auto;
  }

  .nl-form-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 10px 0;
  }

  .nl-field-label {
    line-height: 1.5;
  }

  .nl-form-actions .nl-field-label {
    display: none;
  }

  .nl-grant-actions {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nl-endpoint-list > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }
}

@media (max-width: 520px) {
  .nl-shell {
    --nl-page-gutter: 10px;
    --nl-card-padding: 14px;
    padding-top: 10px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }

  .naixi-link {
    font-size: 14px;
  }

  .naixi-link h1 {
    font-size: 24px;
  }

  .naixi-link .bm {
    border-radius: 6px;
  }

  .naixi-link .bm_h {
    padding: 9px 12px !important;
  }

  .naixi-link .pn,
  .naixi-link a.pn {
    min-height: 42px;
    padding-right: 14px;
    padding-left: 14px;
    line-height: 40px;
  }

  .naixi-link a.pn {
    height: 42px;
  }

  .nl-nav {
    margin-bottom: 12px;
  }

  .nl-nav .bm_c {
    padding: 10px 11px;
  }

  .nl-hero .bm_c {
    padding: 30px 18px;
  }

  .nl-hero h1 {
    font-size: 27px;
  }

  .nl-hero p {
    margin-bottom: 18px;
  }

  .nl-hero .nl-actions,
  .nl-form-actions .nl-field-control {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .nl-hero .nl-actions .pn,
  .nl-form-actions .pn {
    width: 100%;
  }

  .nl-page-head > .pn {
    width: 100%;
  }

  .nl-row {
    gap: 10px;
    padding: 12px 2px;
  }

  .nl-row-main strong,
  .nl-row-main small {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .nl-row-main small {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .nl-app-avatar,
  .nl-key-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 10px;
  }

  .nl-app-avatar-head {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .nl-app-avatar-preview {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  .nl-app-title {
    align-items: flex-start;
    gap: 11px;
  }

  .nl-app-title h1 {
    font-size: 22px;
  }

  .nl-secret-summary {
    gap: 10px;
  }

  .naixi-link .nl-action-button {
    min-height: 34px;
    line-height: 32px;
  }

  .naixi-link .px,
  .naixi-link .pt {
    min-height: 42px;
    font-size: 16px;
  }

  .naixi-link .pt {
    min-height: 96px;
  }

  .nl-avatar-field {
    gap: 10px;
  }

  .nl-copyline {
    flex-direction: column;
  }

  .nl-copyline .pn {
    width: 100%;
  }

  .nl-confirm-action {
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
  }

  .naixi-link .nl-confirm-input {
    width: auto;
    max-width: 100%;
    height: 38px;
    min-height: 38px;
    flex: 0 0 auto;
    font-size: 14px;
  }

  .nl-usage-action .pn {
    width: 100%;
  }

  .nl-grant {
    padding: 16px 2px;
  }

  .nl-grant-head {
    gap: 10px;
  }

  .nl-grant-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .nl-grant-actions > a,
  .nl-grant-actions form,
  .nl-grant-actions .pn {
    width: 100%;
  }

  .nl-grant-actions > a {
    min-height: 40px;
    padding: 8px 4px;
  }

  .nl-scope-list > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .nl-consent-wrap {
    margin-top: 4px;
  }

  .nl-consent .bm_c {
    padding: 20px 16px;
  }

  .nl-consent .nl-app-avatar-xl {
    width: 58px;
    height: 58px;
    margin-bottom: 14px;
  }

  .nl-consent h1 {
    font-size: 24px;
  }

  .nl-consent-permissions {
    padding: 13px;
  }

  .nl-scope-compact > div {
    grid-template-columns: 25px minmax(0, 1fr);
  }

  .nl-consent-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .nl-consent-actions .pn {
    width: 100%;
  }

  .nl-simple-error .bm_c,
  .nl-error-card {
    padding: 36px 16px !important;
  }

  .nl-table-scroll .dt {
    min-width: 560px;
  }

  .nl-table-scroll.is-compact .dt {
    min-width: 430px;
  }

  .nl-table-scroll.is-wide .dt {
    min-width: 720px;
  }
}

@media (max-width: 380px) {
  .nl-hero .nl-actions,
  .nl-form-actions .nl-field-control,
  .nl-consent-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .nl-app-title {
    align-items: flex-start;
  }

}

@media print {
  .nl-shell {
    width: 100% !important;
    max-width: none;
    padding: 0;
  }

  .nl-nav,
  .nl-doc-menu,
  .nl-page-head > .pn,
  .nl-actions,
  .nl-danger {
    display: none !important;
  }

  .nl-doc-layout {
    display: block;
  }

  .naixi-link .bm {
    break-inside: avoid;
  }

  .naixi-link pre,
  .nl-table-scroll {
    overflow: visible;
  }
}
