.nd-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 26px;
}

.nd-page-head h1 {
  margin: 0;
  color: var(--text-primary);
  font-size: 31px;
  line-height: 1.12;
  font-weight: 820;
  letter-spacing: 0;
}

.nd-page-head p {
  max-width: 760px;
  margin: 9px 0 0;
  color: var(--text-secondary);
  font-size: 15px;
}

.nd-page-head__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  min-width: max-content;
}

.nd-panel,
.nd-stat-card {
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: var(--surface-glass);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px);
}

.nd-panel {
  padding: 18px;
}

.nd-panel h2 {
  margin: 0 0 10px;
  color: var(--text-primary);
  font-size: 18px;
  line-height: 1.25;
}

.nd-panel p,
.nd-panel li {
  color: var(--text-secondary);
}

.nd-panel ol {
  margin: 10px 0;
  padding-left: 20px;
}

.nd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid var(--accent-blue);
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-strong));
  box-shadow: 0 12px 26px rgba(15, 98, 254, 0.2);
  cursor: pointer;
  text-decoration: none;
  font-weight: 750;
  white-space: nowrap;
}

.nd-btn:hover {
  filter: brightness(1.02);
}

.nd-btn:disabled,
.nd-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.nd-btn svg,
.nd-btn-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nd-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  color: var(--text-primary);
  background: var(--surface-solid);
  box-shadow: var(--shadow-panel);
  cursor: pointer;
  text-decoration: none;
}

.nd-btn-icon:hover {
  color: var(--accent-blue);
  border-color: color-mix(in srgb, var(--accent-blue) 24%, var(--border-soft));
}

.nd-btn--secondary {
  color: var(--text-primary);
  background: var(--surface-solid);
  border-color: var(--border-soft);
  box-shadow: var(--shadow-panel);
}

.nd-btn--danger {
  color: #ffffff;
  background: var(--accent-red);
  border-color: var(--accent-red);
  box-shadow: none;
}

.nd-btn--warning {
  color: #2b2100;
  background: var(--accent-yellow);
  border-color: var(--accent-yellow);
  box-shadow: none;
}

.nd-btn--small {
  min-height: 32px;
  padding: 6px 11px;
  font-size: 13px;
}

.nd-alert {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  color: var(--text-primary);
  background: var(--surface-solid);
}

.nd-alert--warning,
.nd-alert--warn {
  border-color: rgba(245, 197, 66, 0.5);
  background: color-mix(in srgb, var(--accent-yellow) 16%, var(--surface-solid));
}

.nd-alert--error,
.nd-alert--err {
  border-color: rgba(223, 51, 71, 0.36);
  background: color-mix(in srgb, var(--accent-red) 12%, var(--surface-solid));
}

.nd-alert--success {
  border-color: rgba(22, 166, 106, 0.36);
  background: color-mix(in srgb, var(--accent-green) 12%, var(--surface-solid));
}

.nd-alert--info {
  border-color: color-mix(in srgb, var(--accent-blue) 32%, var(--border-soft));
  background: color-mix(in srgb, var(--accent-blue) 10%, var(--surface-solid));
}

.nd-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: var(--surface-solid);
}

.nd-table {
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--text-primary);
  background: var(--surface-solid);
}

.nd-table th,
.nd-table td {
  padding: 17px 18px;
  border-bottom: 1px solid var(--border-soft);
  text-align: left;
  vertical-align: top;
}

.nd-table th {
  color: var(--text-secondary);
  background: color-mix(in srgb, var(--surface-muted) 70%, var(--surface-solid));
  font-size: 12px;
  font-weight: 760;
}

.nd-table tbody tr:last-child td {
  border-bottom: 0;
}

.nd-table tbody tr:hover td {
  background: color-mix(in srgb, var(--accent-blue) 4%, var(--surface-solid));
}

.nd-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 4px 11px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.nd-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.nd-status--active {
  color: var(--accent-green);
  background: color-mix(in srgb, var(--accent-green) 12%, var(--surface-solid));
}

.nd-status--inactive {
  color: var(--accent-red);
  background: color-mix(in srgb, var(--accent-red) 12%, var(--surface-solid));
}

.nd-status--pending {
  color: var(--accent-orange);
  background: color-mix(in srgb, var(--accent-yellow) 16%, var(--surface-solid));
}

.nd-empty,
.nd-placeholder {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
}

.nd-empty h2,
.nd-placeholder h2 {
  margin: 0;
  font-size: 20px;
}

.nd-empty p,
.nd-placeholder p {
  margin: 0;
  max-width: 520px;
}

.nd-placeholder__mark {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-strong));
  font-size: 26px;
  font-weight: 800;
}

.nd-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nd-form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.nd-form-field label {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 720;
}

.nd-form-field input,
.nd-form-field select,
.copy-box input {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  color: var(--text-primary);
  background: var(--surface-solid);
  outline: 0;
}

.nd-form-field input:focus,
.nd-form-field select:focus,
.copy-box input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-blue) 16%, transparent);
}

.nd-form-field small {
  color: var(--text-muted);
}

.nd-form-error {
  color: var(--accent-red);
  font-size: 13px;
}

.nd-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 6px;
}

.copy-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  margin-top: 12px;
}

@media (max-width: 1200px) {
  .nd-page-head {
    padding-right: 0;
  }
}

@media (max-width: 760px) {
  .nd-page-head {
    align-items: stretch;
    flex-direction: column;
  }

  .nd-page-head h1 {
    font-size: 26px;
  }

  .nd-page-head__actions {
    justify-content: flex-start;
    min-width: 0;
  }

  .nd-btn {
    white-space: normal;
  }

  .copy-box {
    grid-template-columns: 1fr;
  }
}
