@font-face {
  font-family: "Ouer Material Icons";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("/theme/Xboard/assets/ouer-material-icons.woff2") format("woff2");
}

.title-text {
  align-items: center;
  color: #405d82 !important;
  display: inline-flex;
  gap: 8px;
}

.title-text::before {
  content: "language";
  direction: ltr;
  font-family: "Ouer Material Icons";
  font-size: 22px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
}

.dark .title-text {
  color: inherit !important;
}

.ouer-remember-row {
  align-items: center;
  color: #4b5563;
  cursor: pointer;
  display: flex;
  font-size: 14px;
  gap: 8px;
  margin: 10px 0 14px;
  user-select: none;
  width: 100%;
}

.ouer-remember-row input {
  accent-color: #2f7f88;
  height: 16px;
  margin: 0;
  width: 16px;
}

.ouer-subpage-back {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: #52606d;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font: inherit;
  height: 36px;
  justify-content: center;
  margin: 0;
  padding: 0;
  width: 36px;
}

.ouer-subpage-back:hover {
  background: #edf3f4;
  color: #2f7f88;
}

.ouer-subpage-back:focus-visible {
  outline: 2px solid #2f7f88;
  outline-offset: 2px;
}

.ouer-subpage-back__icon {
  direction: ltr;
  font-family: "Ouer Material Icons";
  font-size: 19px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
}

.ouer-subpage-breadcrumb {
  align-items: center;
  display: inline-flex;
}

.ouer-subpage-breadcrumb > :not(.ouer-subpage-back) {
  display: none !important;
}

@media (min-width: 768px) {
  html:has(.n-layout-sider:not(.n-layout-sider--collapsed))
    article > header > :first-child > .n-icon:first-child {
    align-items: center;
    border-radius: 4px;
    cursor: pointer;
    display: flex !important;
    height: 34px;
    justify-content: center;
    left: 178px;
    position: fixed;
    top: 13px;
    width: 34px;
    z-index: 20;
  }

  html:has(.n-layout-sider:not(.n-layout-sider--collapsed))
    article > header > :first-child > .n-icon:first-child:hover {
    background: #edf3f4;
    color: #2f7f88;
  }
}

@media (min-width: 1024px) {
  html[data-ouer-route="dashboard"] .cus-scroll-y > .mb-1.md\:mb-10 {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  html[data-ouer-route="dashboard"] .cus-scroll-y > .mb-1.md\:mb-10 > :first-child {
    grid-column: 1 / -1;
  }

  html[data-ouer-route="dashboard"] .cus-scroll-y > .mb-1.md\:mb-10 > .n-card {
    align-self: start;
    margin-top: 0 !important;
    min-width: 0;
  }

  html[data-ouer-route="plan"] .card-container {
    display: grid !important;
    gap: 24px 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-ouer-route="plan"] .card-container > .card-item {
    min-width: 0 !important;
    width: auto !important;
  }

  html[data-ouer-route="plan"] .card-container > .card-item > .n-card {
    height: 100%;
    max-width: none !important;
    width: 100% !important;
  }
}

@media (max-width: 1023px) {
  html[data-ouer-route="dashboard"] .cus-scroll-y > .mb-1.md\:mb-10 > .n-card {
    width: 100%;
  }
}

/* Native node list details */
.ouer-node-row {
  align-items: center;
  display: grid !important;
  gap: 16px;
  grid-template-columns: minmax(180px, 1fr) minmax(360px, 2fr);
  min-height: 54px;
  padding: 2px 4px;
  position: relative;
}

.ouer-node-row[data-detail-enabled="true"] {
  cursor: pointer;
  margin: -10px -14px;
  padding: 12px 18px;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.ouer-node-row[data-detail-enabled="true"]:hover {
  background: #edf6f5;
}

.ouer-node-row[data-detail-enabled="true"]:focus-visible {
  box-shadow: inset 0 0 0 2px #2f7f88;
  outline: 0;
}

.ouer-node-name {
  align-items: center;
  display: flex;
  font-weight: 600;
  gap: 10px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.ouer-node-name::before {
  color: #2f7f88;
  content: "public";
  direction: ltr;
  flex: 0 0 auto;
  font-family: "Ouer Material Icons";
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.ouer-node-row.is-region-start {
  margin-top: 12px;
}

.n-list-item.ouer-node-region-start {
  border-top: 1px solid #dbe3e6;
}

.ouer-node-status-dot {
  border-radius: 50%;
  display: inline-block;
  height: 8px;
  margin-right: 7px;
  width: 8px;
}

.ouer-node-status-dot.is-online {
  background: #17824b;
  box-shadow: 0 0 0 3px rgb(23 130 75 / 12%);
}

.ouer-node-status-dot.is-offline {
  background: #c23b3b;
  box-shadow: 0 0 0 3px rgb(194 59 59 / 12%);
}

.ouer-node-status-text {
  color: #46515d;
  font-size: 13px;
}

.ouer-node-action {
  align-items: center;
  color: #2f7f88;
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  gap: 2px;
  justify-content: center;
}

.ouer-node-chevron {
  direction: ltr;
  font-family: "Ouer Material Icons";
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}

.ouer-node-action-placeholder {
  color: #9aa3ad;
}

body.ouer-node-detail-open {
  overflow: hidden;
}

.ouer-node-detail-overlay {
  inset: 0;
  position: fixed;
  z-index: 5000;
}

.ouer-node-detail-backdrop {
  background: rgb(20 30 38 / 38%);
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 180ms ease;
}

.ouer-node-detail-drawer {
  background: #ffffff;
  box-shadow: -10px 0 30px rgb(25 38 46 / 18%);
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 100%;
  position: absolute;
  right: 0;
  top: 0;
  transform: translateX(100%);
  transition: transform 180ms ease;
  width: min(760px, 92vw);
}

.ouer-node-detail-overlay.is-open .ouer-node-detail-backdrop {
  opacity: 1;
}

.ouer-node-detail-overlay.is-open .ouer-node-detail-drawer {
  transform: translateX(0);
}

.ouer-node-detail-header {
  align-items: center;
  border-bottom: 1px solid #e3e9ec;
  display: flex;
  flex: 0 0 auto;
  justify-content: space-between;
  min-height: 76px;
  padding: 14px 22px;
}

.ouer-node-detail-header h2 {
  color: #26323a;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.35;
  margin: 2px 0 0;
}

.ouer-node-detail-eyebrow {
  color: #74808a;
  font-size: 12px;
}

.ouer-node-icon {
  direction: ltr;
  font-family: "Ouer Material Icons";
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
}

.ouer-node-icon-button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: #52606d;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  height: 36px;
  justify-content: center;
  padding: 0;
  width: 36px;
}

.ouer-node-icon-button:hover {
  background: #edf3f4;
  color: #2f7f88;
}

.ouer-node-icon-button:focus-visible,
.ouer-node-copy:focus-visible {
  outline: 2px solid #2f7f88;
  outline-offset: 2px;
}

.ouer-node-detail-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 0 22px 32px;
}

.ouer-node-detail-loading {
  align-items: center;
  color: #65717b;
  display: flex;
  gap: 10px;
  justify-content: center;
  min-height: 240px;
}

.ouer-node-detail-spinner {
  animation: ouer-node-spin 800ms linear infinite;
  border: 2px solid #cbd7da;
  border-radius: 50%;
  border-top-color: #2f7f88;
  height: 20px;
  width: 20px;
}

@keyframes ouer-node-spin {
  to {
    transform: rotate(360deg);
  }
}

.ouer-node-summary {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 0 4px;
}

.ouer-node-badge {
  align-items: center;
  background: #f0f3f5;
  border: 1px solid #dbe2e6;
  border-radius: 4px;
  color: #53606a;
  display: inline-flex;
  font-size: 12px;
  gap: 5px;
  min-height: 26px;
  padding: 3px 8px;
}

.ouer-node-badge.is-protocol {
  background: #e7f3f2;
  border-color: #bddbd7;
  color: #216c72;
  font-weight: 650;
}

.ouer-node-badge.is-online {
  background: #e9f6ee;
  border-color: #b9ddc7;
  color: #176a3f;
}

.ouer-node-badge.is-offline {
  background: #fbecec;
  border-color: #ecc3c3;
  color: #a32f2f;
}

.ouer-node-detail-section {
  border-top: 1px solid #e4eaed;
  margin-top: 18px;
  padding-top: 20px;
}

.ouer-node-detail-section h3 {
  color: #2e3941;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.4;
  margin: 0 0 14px;
}

.ouer-node-detail-grid {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.ouer-node-detail-row {
  border-bottom: 1px solid #edf0f2;
  min-width: 0;
  padding: 10px 12px 10px 0;
}

.ouer-node-detail-row dt {
  color: #7a858e;
  font-size: 12px;
  margin-bottom: 4px;
}

.ouer-node-detail-row dd {
  color: #26323a;
  font-size: 14px;
  margin: 0;
  overflow-wrap: anywhere;
}

.ouer-node-detail-row dd.is-monospace {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.ouer-node-secret {
  margin-top: 18px;
}

.ouer-node-secret label {
  color: #4f5b64;
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
}

.ouer-node-secret-controls {
  align-items: stretch;
  display: flex;
  gap: 8px;
}

.ouer-node-secret-controls input {
  background: #f7f9fa;
  border: 1px solid #d8e0e4;
  border-radius: 4px;
  color: #26323a;
  flex: 1 1 auto;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  min-width: 0;
  padding: 8px 10px;
}

.ouer-node-section-header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.ouer-node-section-header h3 {
  margin: 0;
}

.ouer-node-copy {
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd7dc;
  border-radius: 4px;
  color: #36515c;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font: inherit;
  font-size: 12px;
  gap: 6px;
  height: 34px;
  justify-content: center;
  padding: 0 10px;
}

.ouer-node-copy:hover,
.ouer-node-copy.is-copied {
  background: #eaf4f3;
  border-color: #7fb7b2;
  color: #216c72;
}

.ouer-node-code {
  background: #f5f7f8;
  border: 1px solid #dce3e6;
  border-radius: 4px;
  box-sizing: border-box;
  color: #26323a;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
  overflow: auto;
  padding: 12px;
  width: 100%;
}

.ouer-node-code.is-uri {
  min-height: 84px;
  resize: vertical;
}

.ouer-node-code.is-json {
  max-height: 420px;
  white-space: pre;
}

.ouer-node-detail-error {
  align-items: flex-start;
  background: #fff5f5;
  border: 1px solid #efcaca;
  border-radius: 6px;
  color: #912f2f;
  display: flex;
  gap: 10px;
  margin-top: 24px;
  padding: 14px;
}

.ouer-node-detail-error p {
  margin: 3px 0 0;
}

.dark .ouer-node-row[data-detail-enabled="true"]:hover {
  background: rgb(47 127 136 / 14%);
}

.dark .ouer-node-detail-drawer {
  background: #1c2024;
}

.dark .ouer-node-detail-header,
.dark .ouer-node-detail-section {
  border-color: #363d43;
}

.dark .ouer-node-detail-header h2,
.dark .ouer-node-detail-section h3,
.dark .ouer-node-detail-row dd,
.dark .ouer-node-secret-controls input {
  color: #edf2f4;
}

.dark .ouer-node-detail-row {
  border-color: #30363b;
}

.dark .ouer-node-secret-controls input,
.dark .ouer-node-code {
  background: #242a2f;
  border-color: #3c454c;
  color: #e7ecee;
}

.dark .ouer-node-copy {
  background: #242a2f;
  border-color: #465159;
  color: #d5dfe2;
}

@media (max-width: 700px) {
  .ouer-node-row {
    gap: 10px;
    grid-template-columns: minmax(120px, 1fr) minmax(210px, 1.7fr);
  }

  .ouer-node-status-text {
    display: none;
  }

  .ouer-node-detail-drawer {
    width: 100vw;
  }

  .ouer-node-detail-header {
    min-height: 68px;
    padding: 12px 16px;
  }

  .ouer-node-detail-content {
    padding: 0 16px 26px;
  }

  .ouer-node-detail-grid {
    grid-template-columns: 1fr;
  }

  .ouer-node-secret-controls {
    flex-wrap: wrap;
  }

  .ouer-node-secret-controls input {
    flex-basis: calc(100% - 44px);
  }

  .ouer-node-secret-controls .ouer-node-copy {
    margin-left: auto;
  }
}

@media (max-width: 520px) {
  .ouer-node-row {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
  }

  .ouer-node-row > :last-child {
    width: 100%;
  }

  .ouer-node-section-header {
    align-items: flex-start;
  }
}
