/* Device · Server — kompakt, Spezifität über Swift (17px/36px-Felder, 34px-Titel). */

[data-nw-device-server] .form-grid,
body[data-swift="1"] [data-nw-device-server] .form-grid {
  width: 100%;
  max-width: min(100%, 72rem);
  gap: 0.5rem;
}

body[data-swift="1"] [data-nw-device-server] h1.admin-page-title,
[data-nw-device-server] .admin-page-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 4px;
}

body[data-swift="1"] [data-nw-device-server] .admin-page-lead,
[data-nw-device-server] .admin-page-lead {
  font-size: 13px;
  line-height: 1.4;
  margin: 0 0 10px;
  max-width: 52rem;
}

body[data-swift="1"] [data-nw-device-server] .admin-breadcrumb {
  margin: 0 0 4px;
  font-size: 12px;
}

[data-nw-device-server] .admin-card {
  padding: 10px 12px;
}

[data-nw-device-server] .admin-card.nw-ds-fold {
  padding: 4px 12px 8px;
}

[data-nw-device-server] .nw-ds-fold[open] {
  padding-bottom: 10px;
}

[data-nw-device-server] .admin-banner {
  padding: 0.45rem 0.7rem;
  margin-bottom: 0.65rem;
  font-size: 0.78rem;
}

[data-nw-device-server] .form-note {
  margin-top: 0.3rem;
  font-size: 0.75rem;
}

[data-nw-device-server] .form-row label {
  font-size: 12px;
  margin-bottom: 0.1rem;
}

body[data-swift="1"] [data-nw-device-server] input,
body[data-swift="1"] [data-nw-device-server] select,
body[data-swift="1"] [data-nw-device-server] textarea,
[data-nw-device-server] .form-row input,
[data-nw-device-server] .form-row select,
[data-nw-device-server] .form-row textarea {
  min-height: 28px;
  padding: 3px 8px;
  font-size: 13px;
}

body[data-swift="1"] [data-nw-device-server] textarea {
  min-height: 4.2rem;
  border-radius: 10px;
}

body[data-swift="1"] [data-nw-device-server] .btn,
body[data-swift="1"] [data-nw-device-server] .btn-primary,
body[data-swift="1"] [data-nw-device-server] button[type="submit"] {
  min-height: 28px;
  padding: 0 12px;
  font-size: 13px;
}

.nw-ds-tabs {
  display: flex;
  gap: 0.28rem;
  margin: 0 0 0.65rem;
  flex-wrap: wrap;
}

.nw-ds-tabs a {
  display: inline-block;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.8rem;
  color: var(--text);
  border: 1px solid var(--kpi-border, #ccc);
  background: transparent;
}

.nw-ds-tabs a.is-active {
  background: var(--accent, #c8102e);
  color: #fff;
  border-color: transparent;
}

.nw-ds-fold > summary {
  cursor: pointer;
  list-style: none;
  padding: 0.2rem 0;
}

.nw-ds-fold > summary::-webkit-details-marker {
  display: none;
}

.nw-ds-fold > summary::before {
  content: "▸";
  display: inline-block;
  width: 1rem;
  color: var(--text-muted, #6e6e73);
}

.nw-ds-fold[open] > summary::before {
  content: "▾";
}

.nw-ds-fold > summary h3 {
  display: inline;
  margin: 0;
  font-size: 0.88rem;
  font-weight: 650;
}

.nw-ds-form-tile {
  max-width: 540px;
  margin: 0.25rem 0 0.65rem;
}

.nw-ds-form-tile .st-card {
  width: 100%;
  min-height: 220px;
}

.nw-ds-list-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  margin: 0 0 0.55rem;
}

.nw-ds-views {
  display: inline-flex;
  margin: 0;
  border: 1px solid var(--kpi-border, #ccc);
  border-radius: 999px;
  overflow: hidden;
  flex: 0 0 auto;
}

.nw-ds-views button {
  margin: 0;
  padding: 0.28rem 0.7rem;
  border: 0;
  border-right: 1px solid var(--kpi-border, #ccc);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.nw-ds-views button:last-child {
  border-right: 0;
}

.nw-ds-views button.is-on {
  background: var(--accent, #c8102e);
  color: #fff;
}

.nw-ds-toolbar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0;
  align-items: center;
  flex: 1 1 18rem;
}

.nw-ds-toolbar input[type="search"],
.nw-ds-toolbar select {
  min-width: 10rem;
  flex: 1 1 10rem;
}

[data-nw-ds-view="tiles"] .nw-ds-toolbar {
  margin-bottom: 0.85rem;
}

.nw-ds-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  height: 28px;
  padding: 0 11px;
  border: 1px solid var(--glass-edge, rgba(255, 255, 255, 0.72));
  border-radius: var(--radius-control, 999px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.08)),
    var(--input-bg, rgba(118, 118, 128, 0.12));
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62), 0 6px 14px rgba(48, 72, 110, 0.08);
  backdrop-filter: blur(var(--glass-blur, 28px)) saturate(var(--glass-saturate, 180%));
  -webkit-backdrop-filter: blur(var(--glass-blur, 28px)) saturate(var(--glass-saturate, 180%));
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.nw-ds-tool-btn:hover,
.nw-ds-tool-btn[aria-pressed="true"],
.nw-ds-tool-btn.is-on {
  background: var(--icon-btn-hover-bg, rgba(120, 120, 128, 0.16));
  text-decoration: none;
}

.nw-ds-tool-btn svg {
  display: block;
  flex: 0 0 auto;
}

.nw-ds-tool-btn[hidden],
[data-nw-ds-create][hidden],
[data-nw-ds-tab="new"][hidden] {
  display: none !important;
}

.nw-ds-tool-btn.is-busy .nw-ds-tool-btn__reload {
  animation: nw-ds-spin 0.85s linear infinite;
}

@keyframes nw-ds-spin {
  to {
    transform: rotate(360deg);
  }
}

html[data-theme="dark"] .nw-ds-tool-btn {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    var(--input-bg, rgba(118, 118, 128, 0.22));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 16px rgba(0, 0, 0, 0.22);
}

[data-nw-device-server].is-list-compact .admin-page-lead,
[data-nw-device-server].is-list-compact .nw-ds-collect {
  display: none;
}

[data-nw-device-server].is-list-compact .admin-page-title,
body[data-swift="1"] [data-nw-device-server].is-list-compact h1.admin-page-title {
  font-size: 20px;
  margin: 0 0 0.2rem;
}

[data-nw-device-server].is-list-compact .admin-breadcrumb {
  margin-bottom: 0.25rem;
  font-size: 0.78rem;
}

[data-nw-device-server].is-list-compact .nw-ds-tabs {
  margin-bottom: 0.4rem;
  gap: 0.25rem;
}

[data-nw-device-server].is-list-compact .nw-ds-tabs a {
  padding: 0.22rem 0.65rem;
  font-size: 0.8rem;
}

[data-nw-device-server].is-list-compact .nw-ds-list-head {
  gap: 0.3rem 0.5rem;
  margin-bottom: 0.4rem;
}

[data-nw-device-server].is-list-compact .nw-ds-views button {
  padding: 0.2rem 0.55rem;
  font-size: 0.78rem;
}

[data-nw-device-server].is-list-compact .nw-ds-toolbar {
  gap: 0.3rem;
}

[data-nw-device-server].is-list-compact .nw-ds-toolbar input[type="search"] {
  min-width: 7rem;
  flex: 1 1 8rem;
  max-width: 14rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.82rem;
}

[data-nw-device-server].is-list-compact .nw-ds-toolbar select {
  min-width: 6.5rem;
  flex: 0 0 auto;
  width: auto;
  padding: 0.25rem 0.4rem;
  font-size: 0.82rem;
}

[data-nw-device-server].is-list-compact .nw-ds-toolbar .btn,
[data-nw-device-server].is-list-compact .nw-ds-toolbar .nw-ds-tool-btn {
  padding: 0 10px;
  height: 26px;
  font-size: 12px;
}

.nw-ds-label-short {
  display: none;
}

[data-nw-device-server].is-list-compact .nw-ds-label-full {
  display: none;
}

[data-nw-device-server].is-list-compact .nw-ds-label-short {
  display: inline;
}

[data-nw-device-server].is-list-compact [data-nw-ds-count] {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
}

[data-nw-device-server].is-list-tight .nw-ds-table th,
[data-nw-device-server].is-list-tight .nw-ds-table td {
  padding: 0.28rem 0.4rem;
}

[data-nw-device-server].is-list-tight .nw-ds-filter {
  margin-top: 0.1rem;
  font-size: 0.72rem;
  min-width: 0;
}

.nw-ds-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 0.85rem;
}

@media (min-width: 1280px) {
  .nw-ds-fold[open] .nw-ds-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.nw-ds-span2 {
  grid-column: 1 / -1;
}

.nw-ds-table {
  width: max-content;
  min-width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.82rem;
}

.nw-ds-table th,
.nw-ds-table td {
  text-align: left;
  padding: 0.32rem 0.42rem;
  border-bottom: 1px solid var(--kpi-border, #ddd);
  vertical-align: top;
}

body[data-swift="1"] [data-nw-device-server] .nw-ds-filter,
body[data-swift="1"] [data-nw-device-server] .nw-ds-inline {
  min-height: 24px;
  font-size: 12px;
  padding: 1px 6px;
}

.nw-ds-table thead th {
  position: sticky;
  overflow: hidden;
  background: var(--bg-card, var(--bg, #fff));
}

.nw-ds-table thead tr:first-child th {
  top: 0;
  z-index: 5;
  box-shadow: inset 0 -1px 0 var(--kpi-border, #ddd);
}

.nw-ds-table thead .nw-ds-filter-row th {
  top: var(--nw-ds-thead-row, 2rem);
  z-index: 4;
  box-shadow: 0 1px 0 var(--kpi-border, #ddd);
}

.nw-ds-table td {
  overflow-wrap: anywhere;
}

.nw-ds-table thead tr:first-child th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

.nw-ds-pill {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
}

html[data-theme="dark"] .nw-ds-pill {
  background: rgba(255, 255, 255, 0.1);
}

.nw-ds-pill--active {
  background: rgba(46, 125, 50, 0.18);
}
.nw-ds-pill--planned,
.nw-ds-pill--draft {
  background: rgba(2, 136, 209, 0.15);
}
.nw-ds-pill--move,
.nw-ds-pill--maintenance {
  background: rgba(217, 119, 6, 0.18);
}
.nw-ds-pill--decommissioned,
.nw-ds-pill--rejected {
  background: rgba(198, 40, 40, 0.14);
}

.nw-ds-preview {
  margin: 0.4rem 0 0;
  padding: 0.45rem 0.65rem;
  font-size: 0.75rem;
  line-height: 1.45;
  white-space: pre-wrap;
  background: rgba(0, 0, 0, 0.04);
  border-radius: var(--radius, 8px);
  max-height: 14rem;
  overflow: auto;
}

html[data-theme="dark"] .nw-ds-preview {
  background: rgba(255, 255, 255, 0.05);
}

.nw-ds-party {
  display: grid;
  grid-template-columns: 8rem 1fr 1.4fr auto;
  gap: 0.4rem;
  margin: 0.4rem 0;
  align-items: center;
}

.nw-ds-check {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
}

.nw-ds-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
}

.nw-ds-host {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.nw-ds-host__fqdn {
  display: block;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-muted, rgba(60, 60, 67, 0.6));
  overflow-wrap: anywhere;
}

.nw-ds-kv {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 0.22rem 0.65rem;
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
}

.nw-ds-kv dt {
  color: var(--text-muted);
}

.nw-ds-kv dd {
  margin: 0;
}

.nw-ds-thumb {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top center;
  border: 1px solid var(--kpi-border, #ddd);
  border-radius: 4px;
  display: block;
  background: #111;
}

.nw-ds-thumb-cell a {
  display: block;
  line-height: 0;
}

.nw-ds-reach-cell {
  white-space: nowrap;
}

.nw-ds-reach-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.nw-ds-reach {
  display: inline-block;
  margin: 0;
  padding: 0.12rem 0.35rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: #fff;
  cursor: pointer;
  background: #78909c;
}

.nw-ds-reach.is-up {
  background: #2e7d32;
}

.nw-ds-reach.is-down {
  background: #c62828;
}

.nw-ds-reach.is-wait {
  background: #ef6c00;
}

.nw-ds-reach:disabled {
  cursor: wait;
  opacity: 0.85;
}

.nw-ds-thumb-cell {
  padding: 0.3rem;
  line-height: 0;
}

.nw-ds-col-resize {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 8px;
  cursor: col-resize;
  z-index: 9;
  border-radius: 2px;
  touch-action: none;
}

.nw-ds-col-resize:hover,
.nw-ds-col-resize:focus {
  background: color-mix(in srgb, var(--accent, #0ea5e9) 22%, transparent);
}

html[data-theme="dark"] .nw-ds-col-resize:hover,
html[data-theme="dark"] .nw-ds-col-resize:focus {
  background: color-mix(in srgb, var(--accent, #0ea5e9) 28%, transparent);
}

.nw-ds-reach-filters {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.nw-ds-filter-reach {
  min-width: 0;
  font-weight: 700;
}

.nw-ds-filter-reach.is-up {
  border-color: #2e7d32;
  color: #2e7d32;
}

.nw-ds-filter-reach.is-down {
  border-color: #c62828;
  color: #c62828;
}

.nw-ds-dns {
  font-size: 0.75rem;
  line-height: 1.3;
  max-width: 16rem;
  white-space: pre-line;
  word-break: break-word;
}

.nw-ds-dns .nw-ds-inline {
  width: 100%;
  min-width: 9rem;
}

.nw-ds-pos {
  overflow: hidden;
}

.nw-ds-pos .nw-ds-inline {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.nw-ds-fqdn .nw-ds-inline {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
}

.nw-ds-net-toggle {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.nw-ds-net-toggle::before {
  content: "▸";
  display: inline-block;
  width: 0.8em;
  margin-right: 0.2rem;
}

.nw-ds-table.is-net-open .nw-ds-net-toggle::before {
  content: "▾";
}

.nw-ds-net-sum {
  display: grid;
  gap: 0.15rem;
  font-size: 0.78rem;
  line-height: 1.35;
}

.nw-ds-net-sum b {
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted, #666);
}

.nw-ds-net-fields {
  display: none;
}

.nw-ds-table.is-net-open .nw-ds-net-sum {
  display: none;
}

.nw-ds-table.is-net-open .nw-ds-net-fields {
  display: grid;
  gap: 0.45rem;
}

.nw-ds-net-field {
  display: block;
}

.nw-ds-net-field > span {
  display: block;
  margin-bottom: 0.12rem;
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted, #666);
}

.nw-ds-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.nw-ds-table th[data-nw-ds-sort] {
  white-space: nowrap;
  vertical-align: middle;
}

.nw-ds-sort {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.nw-ds-sort:hover {
  color: var(--text, #111);
}

.nw-ds-table th[aria-sort="ascending"] .nw-ds-sort::after,
.nw-ds-table th[aria-sort="descending"] .nw-ds-sort::after {
  font-size: 0.7em;
  margin-left: 0.25rem;
  opacity: 0.75;
}

.nw-ds-table th[aria-sort="ascending"] .nw-ds-sort::after {
  content: "▲";
}

.nw-ds-table th[aria-sort="descending"] .nw-ds-sort::after {
  content: "▼";
}

.nw-ds-owner-cell {
  min-width: 10rem;
}

.nw-ds-inline {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 0.28rem;
  padding: 0.28rem 0.4rem;
  font: inherit;
  font-size: 0.85rem;
  color: inherit;
  border: 1px solid var(--kpi-border, #ccc);
  border-radius: 4px;
  background: transparent;
}

.nw-ds-inline:last-child {
  margin-bottom: 0;
}

.nw-ds-inline:focus {
  outline: 2px solid var(--accent, #0ea5e9);
  outline-offset: 1px;
}

.nw-ds-inline.is-saving {
  opacity: 0.65;
}

.nw-ds-inline.is-saved {
  border-color: #2e7d32;
}

.nw-ds-inline.is-err {
  border-color: #c62828;
}

html[data-theme="dark"] .nw-ds-inline {
  background: rgba(255, 255, 255, 0.04);
}

.nw-ds-tag-cell {
  min-width: 12.5rem;
  width: 13.5rem;
}

.nw-ds-tag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0 0 0.3rem;
}

.nw-ds-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.05rem;
  border: 1px solid var(--kpi-border, #ccc);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.nw-ds-tag__btn {
  margin: 0;
  padding: 0.15rem 0.35rem 0.15rem 0.45rem;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.nw-ds-tag__x {
  margin: 0;
  padding: 0 0.35rem 0 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  opacity: 0.55;
  cursor: pointer;
}

.nw-ds-tag__x:hover {
  opacity: 1;
}

.nw-ds-tag-add {
  min-width: 7rem;
}

.nw-ds-port-cell {
  min-width: 8.5rem;
}

.nw-ds-port-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0 0 0.3rem;
}

.nw-ds-port {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(28, 28, 30, 0.28);
  border-radius: 999px;
  background: #f2f2f7;
  color: #1c1c1e;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.nw-ds-port__n,
.nw-ds-port__x {
  color: #1c1c1e;
}

.nw-ds-port__n {
  padding: 0.15rem 0.15rem 0.15rem 0.45rem;
}

.nw-ds-port__x {
  margin: 0;
  padding: 0.15rem 0.4rem 0.15rem 0.15rem;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  opacity: 0.72;
  cursor: pointer;
}

html[data-theme="dark"] .nw-ds-port {
  background: #f2f2f7;
  border-color: rgba(255, 255, 255, 0.72);
  color: #1c1c1e;
}

html[data-theme="dark"] .nw-ds-port__n,
html[data-theme="dark"] .nw-ds-port__x {
  color: #1c1c1e;
}

.nw-ds-port__x:hover {
  opacity: 1;
}

.nw-ds-port-add {
  min-width: 4.5rem;
}

.nw-ds-media-row {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nw-ds-media {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
  background: #f2f2f7;
  flex: 0 0 auto;
}

.nw-ds-media--empty {
  display: inline-block;
  border: 1px dashed rgba(60, 60, 67, 0.35);
}

.nw-ds-media-add {
  font-size: 0.72rem;
  font-weight: 650;
  cursor: pointer;
  color: #007aff;
}

.nw-ds-media-add input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.nw-ds-media-x {
  border: 0;
  background: none;
  color: #1c1c1e;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.15rem;
}

html[data-theme="dark"] .nw-ds-media-x {
  color: #f5f5f7;
}

.nw-ds-filter-row th {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  overflow: visible;
}

.nw-ds-filter {
  width: 100%;
  min-width: 4.5rem;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  text-transform: none;
  letter-spacing: 0;
}

.nw-ds-note {
  min-width: 8rem;
}

textarea.nw-ds-note {
  display: block;
  width: 100%;
  min-height: 4.2rem;
  resize: vertical;
  line-height: 1.3;
  white-space: pre-wrap;
}

.nw-ds-sub {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.nw-ds-pill--php-used {
  background: rgba(217, 119, 6, 0.22);
}
.nw-ds-pill--php-configured,
.nw-ds-pill--php-installed {
  background: rgba(2, 136, 209, 0.16);
}
.nw-ds-pill--php-none {
  background: rgba(46, 125, 50, 0.16);
}

.nw-ds-collect {
  margin: 0 0 0.5rem;
}

.nw-ds-collect summary {
  cursor: pointer;
  font-weight: 600;
}

.nw-ds-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 32px;
  font-weight: 500;
}

.nw-ds-pub {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0 auto;
  min-width: 3.6rem;
  cursor: pointer;
  user-select: none;
}

.nw-ds-pub__switch {
  position: relative;
  width: 42px;
  height: 26px;
  flex: 0 0 auto;
}

.nw-ds-pub__switch input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.nw-ds-pub__ui {
  display: block;
  position: relative;
  width: 42px;
  height: 26px;
  border-radius: 999px;
  background: rgba(120, 120, 128, 0.18);
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.08), inset 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: background 180ms ease;
}

.nw-ds-pub__knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16), 0 0 1px rgba(0, 0, 0, 0.08);
  transition: transform 180ms ease;
}

.nw-ds-pub input:checked + .nw-ds-pub__ui {
  background: var(--accent, #007aff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.nw-ds-pub input:checked + .nw-ds-pub__ui .nw-ds-pub__knob {
  transform: translateX(16px);
}

.nw-ds-pub input:focus-visible + .nw-ds-pub__ui {
  outline: 2px solid var(--accent, #007aff);
  outline-offset: 2px;
}

.nw-ds-pub__caption {
  display: block;
  max-width: 7.2rem;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-align: center;
  color: var(--text-muted, rgba(60, 60, 67, 0.6));
}

.nw-ds-pub:has(input:checked) .nw-ds-pub__caption {
  color: var(--text, #1d1d1f);
}

html[data-theme="dark"] .nw-ds-pub__ui {
  background: rgba(120, 120, 128, 0.32);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .nw-ds-pub:has(input:checked) .nw-ds-pub__caption {
  color: var(--text, #fff);
}

.nw-ds-table td:has(.nw-ds-pub) {
  text-align: center;
  vertical-align: middle;
}

body[data-swift="1"] #ds-status-public,
body[data-swift="1"] #ds-php-check {
  appearance: none;
  position: relative;
  width: 42px;
  height: 26px;
  min-height: 26px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(120, 120, 128, 0.18);
  color: transparent;
  font-size: 0;
  cursor: pointer;
  flex: 0 0 auto;
  box-shadow: none;
  transition: background 180ms ease;
}

body[data-swift="1"] #ds-status-public::after,
body[data-swift="1"] #ds-php-check::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
  transition: transform 180ms ease;
}

body[data-swift="1"] #ds-status-public:checked,
body[data-swift="1"] #ds-php-check:checked {
  background: var(--accent, #007aff);
}

body[data-swift="1"] #ds-status-public:checked::after,
body[data-swift="1"] #ds-php-check:checked::after {
  transform: translateX(16px);
}

@media (max-width: 720px) {
  .nw-ds-grid,
  .nw-ds-party {
    grid-template-columns: 1fr;
  }
}

.nw-ds-check--inline {
  margin: 0;
  white-space: nowrap;
}

.nw-ds-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.nw-ds-chip {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0.22rem 0.55rem;
  border: 1px solid rgba(60, 60, 67, 0.18);
  border-radius: 999px;
  background: #fff;
  color: #1d1d1f;
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
  user-select: none;
}

.nw-ds-chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.nw-ds-chip:has(input:checked) {
  background: #007aff;
  color: #fff;
  border-color: transparent;
}

.nw-ds-chip:focus-within {
  outline: 2px solid #007aff;
  outline-offset: 2px;
}

.nw-ds-sched {
  display: grid;
  gap: 8px;
}

.nw-ds-sched__times {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.nw-ds-sched__hint {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6e6e73;
}

@media (max-width: 900px) {
  .nw-ds-sched__times {
    grid-template-columns: 1fr;
  }
}

.nw-ds-tiles-page {
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --border: rgba(60, 60, 67, 0.12);
  box-sizing: border-box;
  width: 100%;
  max-width: 1180px;
  color: #1d1d1f;
  color-scheme: light;
  background: #f6f6f8;
  border-radius: 16px;
  padding: 20px 32px 28px;
}

.nw-ds-tiles-page .st-grid {
  align-items: start;
  justify-content: start;
  grid-template-columns: repeat(2, minmax(0, 540px));
  gap: 32px 36px;
}

.nw-ds-tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  width: 100%;
  max-width: 540px;
}

.nw-ds-tile.is-private .st-card {
  outline: 1px dashed rgba(60, 60, 67, 0.35);
}

.nw-ds-tile__stage .st-card {
  width: 100%;
  height: auto;
  min-height: 220px;
}

.nw-ds-tile__stage .st-ticket {
  pointer-events: none;
}

.nw-ds-tile__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.nw-ds-tile__head .nw-ds-mono {
  font-weight: 650;
  color: #1d1d1f;
  text-decoration: none;
}

.nw-ds-tile__fqdn {
  min-width: 0;
  flex: 1 1 auto;
  font-size: 0.82rem;
  color: #6e6e73;
  overflow-wrap: anywhere;
}

.nw-ds-tile__edit {
  display: grid;
  gap: 8px;
}

.nw-ds-tile__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 650;
  color: #3a3a3c;
}

.nw-ds-tile__field .nw-ds-inline,
.nw-ds-tiles-page .nw-ds-inline {
  font-weight: 400;
  color: #1d1d1f;
  background: #fff;
  border: 1px solid rgba(60, 60, 67, 0.18);
}

.nw-ds-tile__media {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  align-items: end;
}

.nw-ds-tile__media > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 650;
  color: #3a3a3c;
}

.nw-ds-tiles-page .nw-ds-media {
  background: #fff;
}

.nw-ds-tiles-page .nw-ds-media-x {
  color: #1c1c1e;
}

@media (max-width: 900px) {
  .nw-ds-tile__media {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .nw-ds-tiles-page {
    padding: 16px 14px 24px;
  }

  .nw-ds-tiles-page .st-grid {
    grid-template-columns: minmax(0, 540px);
    gap: 20px;
  }
}

html[data-theme="dark"] .nw-ds-tiles-page .st-card {
  background: #ffffff;
  border-color: rgba(60, 60, 67, 0.1);
  color: #1d1d1f;
}

html[data-theme="dark"] .nw-ds-tiles-page .st-scope,
html[data-theme="dark"] .nw-ds-tiles-page .st-icon {
  background: #f3f3f5;
  color: #3a3a3c;
}

html[data-theme="dark"] .nw-ds-tiles-page .st-title {
  color: #1d1d1f;
}

html[data-theme="dark"] .nw-ds-tiles-page .st-name-sub {
  color: #3a3a3c;
}

html[data-theme="dark"] .nw-ds-tiles-page .st-mark {
  background: #fff;
}

html[data-theme="dark"] .nw-ds-tiles-page .st-fqdn,
html[data-theme="dark"] .nw-ds-tiles-page .st-ticket {
  color: #007aff;
}

html[data-theme="dark"] .nw-ds-tiles-page .st-ticket {
  background: #ffffff;
}

html[data-theme="dark"] .nw-ds-chip {
  background: #2c2c2e;
  color: #f2f2f7;
  border-color: rgba(84, 84, 88, 0.65);
}

html[data-theme="dark"] .nw-ds-chip:has(input:checked) {
  background: #0a84ff;
  color: #fff;
}

html[data-theme="dark"] .nw-ds-tiles-page .nw-ds-chip {
  background: #fff;
  color: #1d1d1f;
  border-color: rgba(60, 60, 67, 0.18);
}

html[data-theme="dark"] .nw-ds-tiles-page .nw-ds-chip:has(input:checked) {
  background: #007aff;
  color: #fff;
  border-color: transparent;
}

html[data-hsa-server="1"] .sidebar,
html[data-hsa-server="1"] .sidebar__toggle,
html[data-hsa-server="1"] header.topbar,
html[data-hsa-server="1"] [data-nw-global-search],
html[data-hsa-server="1"] [data-nw-password-gen],
html[data-hsa-server="1"] .nw-portal-only,
html[data-hsa-server="1"] .admin-page-title,
html[data-hsa-server="1"] .admin-page-lead {
  display: none !important;
}

html[data-hsa-server="1"] a.nw-hsa-only,
html[data-hsa-server="1"] div.nw-hsa-only {
  display: flex !important;
}

html[data-hsa-server="1"] .nw-ds-appbar {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 52px;
  margin: 0 0 10px;
  padding: 6px 10px 6px 12px;
  border-radius: var(--radius-nav, 12px);
  background: var(--bg-header, rgba(255, 255, 255, 0.34));
  border: 1px solid var(--glass-edge, rgba(255, 255, 255, 0.78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), var(--glass-shadow, 0 8px 24px rgba(48, 72, 110, 0.1));
  backdrop-filter: blur(var(--glass-blur, 28px)) saturate(var(--glass-saturate, 180%));
  -webkit-backdrop-filter: blur(var(--glass-blur, 28px)) saturate(var(--glass-saturate, 180%));
}

html[data-hsa-server="1"] .nw-hsa-chrome__brand {
  flex: 0 0 auto;
  align-items: center;
  line-height: 0;
}

html[data-hsa-server="1"] .nw-hsa-chrome__brand img {
  display: block;
  height: 36px;
  width: auto;
}

html[data-hsa-server="1"] [data-nw-device-server] .nw-ds-tabs,
html[data-hsa-server="1"] [data-nw-device-server].is-list-compact .nw-ds-tabs {
  flex: 1 1 auto;
  margin: 0;
  min-width: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

html[data-hsa-server="1"] [data-nw-device-server] .nw-ds-tabs::-webkit-scrollbar {
  display: none;
}

html[data-hsa-server="1"] [data-nw-device-server] .nw-ds-tabs a,
html[data-hsa-server="1"] [data-nw-device-server].is-list-compact .nw-ds-tabs a {
  flex: 0 0 auto;
  white-space: nowrap;
  background: var(--input-bg, rgba(118, 118, 128, 0.12));
  border-color: transparent;
  font-weight: 600;
}

html[data-hsa-server="1"] [data-nw-device-server] .nw-ds-tabs a.is-active {
  background: var(--accent, #007aff);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 6px 14px rgba(0, 122, 255, 0.28);
}

html[data-hsa-server="1"] .nw-hsa-chrome__actions {
  flex: 0 0 auto;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

html[data-hsa-server="1"] .nw-hsa-chrome__tags {
  display: flex;
  align-items: center;
  min-width: 0;
}

html[data-hsa-server="1"] .nw-hsa-tag-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

html[data-hsa-server="1"] .nw-hsa-tag-bar .nw-tag-bar__chips {
  flex: 0 1 auto;
}

html[data-hsa-server="1"] .nw-hsa-tag-bar .nw-tag-bar__input-wrap {
  flex: 0 0 7.5rem;
  min-width: 6.5rem;
}

html[data-hsa-server="1"] .nw-hsa-tag-bar .nw-tag-bar__input {
  min-height: 28px;
  padding: 0 10px;
  border: none;
  border-radius: var(--radius-field, 999px);
  background: var(--input-bg, rgba(118, 118, 128, 0.12));
  font-size: 13px;
}

html[data-hsa-server="1"] .theme-switch--hsa {
  background: var(--input-bg, rgba(118, 118, 128, 0.12));
  padding: 2px 6px;
}

html[data-hsa-server="1"] .theme-switch--hsa .theme-switch-dock__glyph {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: visible;
  clip: auto;
  color: var(--text-muted, rgba(60, 60, 67, 0.6));
}

html[data-theme="light"][data-hsa-server="1"] .theme-switch--hsa .theme-switch-dock__glyph--sun {
  color: #ff9f0a;
  opacity: 1;
}

html[data-theme="dark"][data-hsa-server="1"] .theme-switch--hsa .theme-switch-dock__glyph--moon {
  color: #64d2ff;
  opacity: 1;
}

html[data-hsa-server="1"] .nw-hsa-dns-btn,
html[data-hsa-server="1"] .nw-hsa-status-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  height: 28px;
  padding: 0 10px;
  border: none;
  border-radius: var(--radius-control, 999px);
  background: var(--input-bg, rgba(118, 118, 128, 0.12));
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

html[data-hsa-server="1"] .nw-hsa-dns-btn:hover,
html[data-hsa-server="1"] .nw-hsa-dns-btn[aria-expanded="true"],
html[data-hsa-server="1"] .nw-hsa-status-btn:hover {
  background: var(--icon-btn-hover-bg, rgba(120, 120, 128, 0.16));
  text-decoration: none;
}

html[data-hsa-server="1"] .nw-hsa-dns-btn svg,
html[data-hsa-server="1"] .nw-hsa-status-btn svg {
  display: block;
  flex: 0 0 auto;
}

.nw-hsa-dns-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: start center;
  padding: 72px 16px 24px;
}

.nw-hsa-dns-modal[hidden] {
  display: none;
}

.nw-hsa-dns-modal__backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.28);
  cursor: pointer;
}

.nw-hsa-dns-modal__card {
  position: relative;
  z-index: 1;
  width: min(100%, 28rem);
  max-height: calc(100vh - 96px);
  overflow: auto;
  margin: 0;
  padding: 16px 16px 14px;
  border-radius: var(--radius-nav, 16px);
  background: var(--bg-header, rgba(255, 255, 255, 0.86));
  border: 1px solid var(--glass-edge, rgba(255, 255, 255, 0.78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 18px 40px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(var(--glass-blur, 28px)) saturate(var(--glass-saturate, 180%));
  -webkit-backdrop-filter: blur(var(--glass-blur, 28px)) saturate(var(--glass-saturate, 180%));
}

.nw-hsa-dns-modal__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  align-items: start;
  margin: 0 0 10px;
}

.nw-hsa-dns-modal__head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nw-hsa-dns-modal__meta {
  grid-column: 1;
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted, rgba(60, 60, 67, 0.6));
}

.nw-hsa-dns-modal__x {
  grid-row: 1 / span 2;
  grid-column: 2;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--input-bg, rgba(118, 118, 128, 0.12));
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.nw-hsa-dns-modal__card .nw-widget-dns__lead {
  margin-bottom: 10px;
  font-size: 12px;
}

.nw-hsa-dns-modal__card .nw-widget-dns__form {
  margin-bottom: 10px;
}

.nw-hsa-dns-modal__card .nw-widget-dns__btn {
  min-height: 28px;
  padding: 0 12px;
}

html[data-theme="dark"] .nw-hsa-dns-modal__card {
  background: var(--bg-header, rgba(28, 28, 30, 0.92));
}

html[data-hsa-server="1"] #nw-hsa-top-logout,
html[data-hsa-server="1"] .nw-hsa-logout {
  display: inline-flex !important;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border: none;
  border-radius: var(--radius-control, 999px);
  background: var(--input-bg, rgba(118, 118, 128, 0.12));
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

html[data-hsa-server="1"] #nw-hsa-top-logout:hover,
html[data-hsa-server="1"] .nw-hsa-logout:hover {
  background: var(--icon-btn-hover-bg, rgba(120, 120, 128, 0.16));
}

html[data-hsa-server="1"] .nw-hsa-ver {
  flex: 0 0 auto;
  margin: 0;
  padding: 0 2px 0 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--text-muted, rgba(60, 60, 67, 0.55));
  white-space: nowrap;
  user-select: none;
}

html[data-hsa-server="1"] .nw-auth-gate {
  background: var(--bg, #eef1f4);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html[data-theme="dark"][data-hsa-server="1"] .nw-auth-gate {
  background: var(--bg, #1c1c1e);
}

html[data-hsa-server="1"] body.nw-auth-gate--open .app {
  visibility: hidden;
}

html[data-hsa-server="1"] .app {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

html[data-hsa-server="1"] .main {
  margin-left: 0;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

html[data-hsa-server="1"] .content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 8px 12px 12px;
}

.content:has([data-nw-device-server]) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

[data-nw-device-server] {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  margin-bottom: 0;
}

.nw-ds-appbar {
  flex: 0 0 auto;
}

.nw-ds-view {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.nw-ds-view[data-nw-ds-view="list"] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.nw-ds-view[data-nw-ds-view="list"][hidden] {
  display: none !important;
}

.nw-ds-view[data-nw-ds-view="list"] .admin-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.nw-ds-list-head,
.nw-ds-view[data-nw-ds-view="list"] .nw-ds-collect,
.nw-ds-view[data-nw-ds-view="list"] [data-nw-ds-unmatched],
.nw-ds-view[data-nw-ds-view="list"] [data-nw-sec-banner] {
  flex: 0 0 auto;
}

[data-nw-ds-list] {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

[data-nw-ds-list] > .form-note,
[data-nw-ds-list] > .admin-muted {
  flex: 0 0 auto;
}

html[data-theme="dark"] .nw-ds-table thead th,
html[data-hsa-server="1"] .nw-ds-table thead th {
  background: var(--bg, #eef1f4);
}

html[data-theme="dark"][data-hsa-server="1"] .nw-ds-table thead th {
  background: var(--bg, #1c1c1e);
}

html[data-hsa-server="1"] p.nw-hsa-only {
  display: block !important;
}

html[data-hsa-server="1"] span.nw-hsa-only {
  display: inline !important;
}

.nw-ds-mgr {
  min-width: 12rem;
  vertical-align: middle;
}

.nw-ds-mgr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.nw-ds-mgr-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  max-width: 12rem;
  font-size: 11px;
  line-height: 1.2;
  padding: 1px 2px 1px 6px;
  border-radius: 999px;
  background: rgba(60, 60, 67, 0.08);
}

.nw-ds-mgr-x {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  padding: 0 4px;
  opacity: 0.65;
}

.nw-ds-mgr-x:hover {
  opacity: 1;
}

.nw-ds-mgr-add {
  max-width: 9.5rem;
  height: 22px;
  font-size: 12px;
  padding: 0 4px;
}

body.nw-ds-editor-open {
  overflow: hidden;
}

.nw-ds-editor {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px 16px;
}

.nw-ds-editor[hidden] {
  display: none !important;
}

.nw-ds-editor__backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.38);
  cursor: pointer;
}

.nw-ds-editor__card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(1180px, calc(100vw - 24px));
  height: min(920px, calc(100vh - 28px));
  max-height: calc(100vh - 28px);
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--glass-edge, rgba(255, 255, 255, 0.78));
  background: var(--bg-card, rgba(255, 255, 255, 0.86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 24px 64px rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(var(--glass-blur, 28px)) saturate(var(--glass-saturate, 180%));
  -webkit-backdrop-filter: blur(var(--glass-blur, 28px)) saturate(var(--glass-saturate, 180%));
}

.nw-ds-editor__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
  padding: 16px 20px 12px;
  border-bottom: 0.5px solid var(--border, rgba(60, 60, 67, 0.16));
}

.nw-ds-editor__kicker {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nw-ds-editor__head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.nw-ds-editor__x {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: var(--input-bg, rgba(118, 118, 128, 0.12));
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.nw-ds-editor__x:hover {
  background: var(--icon-btn-hover-bg, rgba(120, 120, 128, 0.16));
}

.nw-ds-editor [data-nw-ds-editor-status] {
  flex: 0 0 auto;
  margin: 0 20px 0;
}

.nw-ds-editor__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 12px 20px 16px;
}

.nw-ds-editor__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 12px 20px 16px;
  border-top: 0.5px solid var(--border, rgba(60, 60, 67, 0.16));
  background: color-mix(in srgb, var(--bg-card, #fff) 88%, transparent);
}

.nw-ds-editor .form-grid,
body[data-swift="1"] [data-nw-device-server] .nw-ds-editor .form-grid {
  max-width: none;
}

.nw-ds-editor .nw-ds-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 900px) {
  .nw-ds-editor .nw-ds-fold[open] .nw-ds-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

html[data-theme="dark"] .nw-ds-editor__card {
  background: var(--bg-card, rgba(28, 28, 30, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 24px 64px rgba(0, 0, 0, 0.45);
}
